27 lines
807 B
Go
27 lines
807 B
Go
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)
|
|
}
|