common.go 461 B

123456789101112131415
  1. package response
  2. type PageResult struct {
  3. List interface{} `json:"list"`
  4. Total int64 `json:"total"`
  5. Page int `json:"page"`
  6. PageSize int `json:"pageSize"`
  7. }
  8. // 响应结构体
  9. type InventoryResponse struct {
  10. Number int `json:"number"` // 当前库存数量
  11. CommodityName string `json:"commodityName"` // 商品名称(可选)
  12. Location string `json:"location"` // 位置描述(可选)
  13. }