Merge branch 'develop' of https://gitee.com/fusenpack/fusenapi into develop
This commit is contained in:
@@ -26,10 +26,9 @@ type Auth {
|
||||
}
|
||||
|
||||
// 统一分页
|
||||
type Pagnation{
|
||||
TotalCount int64 `json:"total_count"`
|
||||
TotalPage int64 `json:"total_page"`
|
||||
CurPage int64 `json:"cur_page"`
|
||||
PageSize int64 `json:"page_size"`
|
||||
}
|
||||
|
||||
type Meta struct {
|
||||
TotalCount int64 `json:"totalCount"`
|
||||
PageCount int64 `json:"pageCount"`
|
||||
CurrentPage int `json:"currentPage"`
|
||||
PerPage int `json:"perPage"`
|
||||
}
|
||||
@@ -18,6 +18,9 @@ service inventory {
|
||||
//云仓补货
|
||||
@handler SupplementHandler
|
||||
post /inventory/supplement(SupplementReq) returns (response);
|
||||
//提货列表
|
||||
@handler GetPickupListHandler
|
||||
get /inventory/pick-up-list(GetPickupListReq) returns (response);
|
||||
}
|
||||
|
||||
//提取云仓货物
|
||||
@@ -31,8 +34,8 @@ type TakeForm {
|
||||
}
|
||||
//获取云仓库存列表
|
||||
type GetCloudListReq {
|
||||
Page int64 `form:"page"`
|
||||
PageSize int64 `form:"page_size"`
|
||||
Page int `form:"page"`
|
||||
PageSize int `form:"page_size"`
|
||||
Size int64 `form:"size"`
|
||||
}
|
||||
type GetCloudListRsp {
|
||||
@@ -40,7 +43,7 @@ type GetCloudListRsp {
|
||||
TransitBoxes int64 `json:"transit_boxes"`
|
||||
MinTakeNum int64 `json:"minTakeNum"`
|
||||
ListData []ListDataItem `json:"listData"`
|
||||
Pagnation Pagnation `json:"pagnation"`
|
||||
Meta Meta `json:"_meta"`
|
||||
}
|
||||
type ListDataItem {
|
||||
Id int64 `json:"id"`
|
||||
@@ -73,4 +76,48 @@ type SupplementReq {
|
||||
}
|
||||
type SupplementRsp {
|
||||
Sn string `json:"sn"`
|
||||
}
|
||||
|
||||
//提货列表
|
||||
type GetPickupListReq {
|
||||
Status int64 `form:"status,options=-1|1|2|3|4"`
|
||||
Page int `form:"page"`
|
||||
PageSize int `form:"page_size"`
|
||||
Size int `form:"size"`
|
||||
}
|
||||
type GetPickupListRsp {
|
||||
PickupList []PickupItem `json:"items"`
|
||||
Meta Meta `json:"_meta"`
|
||||
}
|
||||
type PickupItem {
|
||||
Id int64 `json:"id"`
|
||||
UserId int64 `json:"user_id"`
|
||||
TrackNum string `json:"track_num"`
|
||||
Ctime string `json:"ctime"`
|
||||
Status int64 `json:"status"`
|
||||
UpsSn string `json:"ups_sn"`
|
||||
Address string `json:"address"`
|
||||
ProductList []Product `json:"productList"`
|
||||
Pcs int64 `json:"pcs"`
|
||||
PcsBox int64 `json:"pcs_box"`
|
||||
LogisticsStatus int64 `json:"logistics_status"`
|
||||
StatusTimes []StatusTimesItem `json:"status_times"`
|
||||
}
|
||||
type Product {
|
||||
Id int64 `json:"id"`
|
||||
PickId int64 `json:"pick_id"`
|
||||
StockId int64 `json:"stock_id"`
|
||||
Num int64 `json:"num"`
|
||||
Boxes int64 `json:"boxes"`
|
||||
Ctime int64 `json:"ctime"`
|
||||
ProductName string `json:"product_name"`
|
||||
Pcs int64 `json:"pcs"`
|
||||
PcsBox int64 `json:"pcs_box"`
|
||||
Cover string `json:"cover"`
|
||||
Size string `json:"size"`
|
||||
Fitting string `json:"fitting"`
|
||||
}
|
||||
type StatusTimesItem {
|
||||
Key int64 `json:"key"`
|
||||
Time string `json:"time"`
|
||||
}
|
||||
@@ -37,21 +37,8 @@ type GetProductListRsp {
|
||||
Description string `json:"description"`
|
||||
}
|
||||
type Ob {
|
||||
Items []*Items `json:"items"`
|
||||
Links *Links `json:"_links"`
|
||||
Meta *Meta `json:"_meta"`
|
||||
}
|
||||
type Meta {
|
||||
TotalCount int32 `json:"totalCount"`
|
||||
PageCount int32 `json:"pageCount"`
|
||||
CurrentPage int32 `json:"currentPage"`
|
||||
PerPage int32 `json:"perPage"`
|
||||
}
|
||||
type Links {
|
||||
Self HrefUrl `json:"self"`
|
||||
First HrefUrl `json:"first"`
|
||||
Last HrefUrl `json:"last"`
|
||||
Next HrefUrl `json:"next"`
|
||||
Items []Items `json:"items"`
|
||||
Meta Meta `json:"_meta"`
|
||||
}
|
||||
type HrefUrl {
|
||||
Href string `json:"href"`
|
||||
@@ -87,20 +74,20 @@ type GetSuccessRecommandRsp {
|
||||
|
||||
//获取分类下的产品以及尺寸
|
||||
type GetSizeByProductRsp {
|
||||
Id int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Children []*Children `json:"children"`
|
||||
Id int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Children []Children `json:"children"`
|
||||
}
|
||||
type Children {
|
||||
Id int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Cycle int `json:"cycle"`
|
||||
ChildrenList []*ChildrenObj `json:"children"`
|
||||
Id int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Cycle int `json:"cycle"`
|
||||
ChildrenList []ChildrenObj `json:"children"`
|
||||
}
|
||||
type ChildrenObj {
|
||||
Id int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
PriceList []*PriceObj `json:"price_list"`
|
||||
Id int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
PriceList []PriceObj `json:"price_list"`
|
||||
}
|
||||
type PriceObj {
|
||||
Num int `json:"num"`
|
||||
|
||||
Reference in New Issue
Block a user