// 库存预警控制器 // 职责:预警查询接口(无Create/Update/Delete,由系统自动生成) // 调用服务:service.InventoryWarning // 注意:只读接口,无写操作 package controller import ( dto "assets/model/dto/stock" service "assets/service/stock" "context" ) type inventoryWarning struct{} var InventoryWarning = new(inventoryWarning) func init() { } func (c *inventoryWarning) GetInventoryWarning(ctx context.Context, req *dto.GetInventoryWarningReq) (res *dto.GetInventoryWarningRes, err error) { return service.InventoryWarning.GetOne(ctx, req) } func (c *inventoryWarning) ListInventoryWarnings(ctx context.Context, req *dto.ListInventoryWarningReq) (res *dto.ListInventoryWarningRes, err error) { return service.InventoryWarning.List(ctx, req) }