fix
This commit is contained in:
@@ -25,3 +25,11 @@ type Auth {
|
||||
RefreshAfter int64 `json:"refreshAfter"`
|
||||
}
|
||||
|
||||
// 统一分页
|
||||
type Pagnation{
|
||||
TotalCount int64 `json:"total_count"`
|
||||
TotalPage int64 `json:"total_page"`
|
||||
CurPage int64 `json:"cur_page"`
|
||||
PageSize int64 `json:"page_size"`
|
||||
}
|
||||
|
||||
|
||||
@@ -12,6 +12,9 @@ service inventory {
|
||||
//提取云仓货物
|
||||
@handler TakeHandler
|
||||
post /inventory/take(TakeReq) returns (response);
|
||||
//获取云仓库存列表
|
||||
@handler GetCloudListHandler
|
||||
get /inventory/list(GetCloudListReq) returns (response);
|
||||
}
|
||||
|
||||
//提取云仓货物
|
||||
@@ -22,4 +25,40 @@ type TakeReq {
|
||||
type TakeForm {
|
||||
Id int64 `json:"id"`
|
||||
Num int64 `json:"num"`
|
||||
}
|
||||
//获取云仓库存列表
|
||||
type GetCloudListReq {
|
||||
Page int64 `json:"page"`
|
||||
PageSize int64 `json:"page_size"`
|
||||
Size int64 `json:"size"`
|
||||
}
|
||||
type GetCloudListRsp {
|
||||
WarehouseBoxes int64 `json:"warehouse_boxes"`
|
||||
TransitBoxes int64 `json:"transit_boxes"`
|
||||
MinTakeNum int64 `json:"minTakeNum"`
|
||||
ListData []ListDataItem `json:"listData"`
|
||||
Pagnation Pagnation `json:"pagnation"`
|
||||
}
|
||||
type ListDataItem {
|
||||
Id int64 `json:"id"`
|
||||
Sn string `json:"sn"`
|
||||
Cover string `json:"cover"`
|
||||
Name string `json:"name"`
|
||||
DesignSn string `json:"design_sn"`
|
||||
Fitting string `json:"fitting"`
|
||||
Production int64 `json:"production"`
|
||||
ProductionBox int64 `json:"production_box"`
|
||||
EachBoxNum int64 `json:"each_box_num"`
|
||||
Stick int64 `json:"stick"`
|
||||
StickBox int64 `json:"stick_box"`
|
||||
Type int64 `json:"type"`
|
||||
TakeNum int64 `json:"takeNum"`
|
||||
Size string `json:"size"`
|
||||
IsStop int64 `json:"is_stop"`
|
||||
PriceList []PriceItem `json:"price"`
|
||||
}
|
||||
type PriceItem {
|
||||
Num int `json:"num"`
|
||||
TotalNum int `json:"total_num"`
|
||||
Price int `json:"price"`
|
||||
}
|
||||
Reference in New Issue
Block a user