Dockerfile
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
dto "assets/model/dto/stock"
|
||||
service "assets/service/stock"
|
||||
"context"
|
||||
|
||||
"gitea.com/red-future/common/beans"
|
||||
)
|
||||
|
||||
type inventoryCountAdjustHistory struct{}
|
||||
|
||||
var InventoryCountAdjustHistory = new(inventoryCountAdjustHistory)
|
||||
|
||||
func init() {}
|
||||
|
||||
// CreateInventoryCountAdjustHistory 创建盘点调整历史记录
|
||||
func (c *inventoryCountAdjustHistory) CreateInventoryCountAdjustHistory(ctx context.Context, req *dto.CreateInventoryCountAdjustHistoryReq) (res *dto.CreateInventoryCountAdjustHistoryRes, err error) {
|
||||
res, err = service.InventoryCountAdjustHistory.Create(ctx, req)
|
||||
return
|
||||
}
|
||||
|
||||
// GetInventoryCountAdjustHistory 获取盘点调整历史记录详情
|
||||
func (c *inventoryCountAdjustHistory) GetInventoryCountAdjustHistory(ctx context.Context, req *dto.GetInventoryCountAdjustHistoryReq) (res *dto.GetInventoryCountAdjustHistoryRes, err error) {
|
||||
res, err = service.InventoryCountAdjustHistory.GetOne(ctx, req)
|
||||
return
|
||||
}
|
||||
|
||||
// DeleteInventoryCountAdjustHistory 删除盘点调整历史记录
|
||||
func (c *inventoryCountAdjustHistory) DeleteInventoryCountAdjustHistory(ctx context.Context, req *dto.DeleteInventoryCountAdjustHistoryReq) (res *beans.ResponseEmpty, err error) {
|
||||
err = service.InventoryCountAdjustHistory.Delete(ctx, req)
|
||||
return
|
||||
}
|
||||
|
||||
// ListInventoryCountAdjustHistories 分页查询盘点调整历史列表
|
||||
func (c *inventoryCountAdjustHistory) ListInventoryCountAdjustHistories(ctx context.Context, req *dto.ListInventoryCountAdjustHistoryReq) (res *dto.ListInventoryCountAdjustHistoryRes, err error) {
|
||||
res, err = service.InventoryCountAdjustHistory.List(ctx, req)
|
||||
return
|
||||
}
|
||||
Reference in New Issue
Block a user