package response type PageResult struct { List interface{} `json:"list"` Total int64 `json:"total"` Page int `json:"page"` PageSize int `json:"pageSize"` } // 响应结构体 type InventoryResponse struct { Number int `json:"number"` // 当前库存数量 CommodityName string `json:"commodityName"` // 商品名称(可选) Location string `json:"location"` // 位置描述(可选) }