Files
assets/controller/stock/inventory_count_adjust_history_controller.go

40 lines
1.6 KiB
Go
Raw Normal View History

2026-03-18 10:18:03 +08:00
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
}