Dockerfile
This commit is contained in:
26
controller/procurement/purchase_inbound_controller.go
Normal file
26
controller/procurement/purchase_inbound_controller.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
dto "assets/model/dto/procurement"
|
||||
service "assets/service/procurement"
|
||||
"context"
|
||||
)
|
||||
|
||||
type purchaseInbound struct{}
|
||||
|
||||
var PurchaseInbound = new(purchaseInbound)
|
||||
|
||||
func init() {
|
||||
}
|
||||
|
||||
func (c *purchaseInbound) CreatePurchaseInbound(ctx context.Context, req *dto.CreatePurchaseInboundReq) (res *dto.CreatePurchaseInboundRes, err error) {
|
||||
return service.PurchaseInbound.Create(ctx, req)
|
||||
}
|
||||
|
||||
func (c *purchaseInbound) GetPurchaseInbound(ctx context.Context, req *dto.GetPurchaseInboundReq) (res *dto.GetPurchaseInboundRes, err error) {
|
||||
return service.PurchaseInbound.GetOne(ctx, req)
|
||||
}
|
||||
|
||||
func (c *purchaseInbound) ListPurchaseInbounds(ctx context.Context, req *dto.ListPurchaseInboundReq) (res *dto.ListPurchaseInboundRes, err error) {
|
||||
return service.PurchaseInbound.List(ctx, req)
|
||||
}
|
||||
Reference in New Issue
Block a user