fix:接口调整

This commit is contained in:
Hiven
2023-08-03 18:27:52 +08:00
parent 2c427662a8
commit 56acf68393
5 changed files with 21 additions and 8 deletions

View File

@@ -14,7 +14,7 @@ service inventory {
post /api/inventory/take(TakeReq) returns (response);
//获取云仓库存列表
@handler GetCloudListHandler
get /api/inventory/list(GetCloudListReq) returns (response);
post /api/inventory/list(GetCloudListReq) returns (response);
//云仓补货
@handler SupplementHandler
post /api/inventory/supplement(SupplementReq) returns (response);
@@ -34,9 +34,9 @@ type TakeForm {
}
//获取云仓库存列表
type GetCloudListReq {
Page int `form:"page"`
PageSize int `form:"page_size"`
Size int64 `form:"size"`
Page int `json:"page"`
PageSize int `json:"page_size"`
Size int64 `json:"size"`
}
type GetCloudListRsp {
WarehouseBoxes int64 `json:"warehouse_boxes"`