Files
assets/controller/stock/inventory_warning_controller.go
2026-03-18 10:18:03 +08:00

27 lines
791 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// 库存预警控制器
// 职责:预警查询接口(无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)
}