fix
This commit is contained in:
@@ -7,6 +7,7 @@ info (
|
||||
email: ""
|
||||
)
|
||||
import "basic.api"
|
||||
//验证登录
|
||||
@server(
|
||||
jwt: Auth
|
||||
)
|
||||
@@ -19,6 +20,13 @@ service product {
|
||||
get /product/success-recommand (GetSuccessRecommandReq) returns (response);
|
||||
}
|
||||
|
||||
//非登录接口
|
||||
service product {
|
||||
//获取分类下的产品以及尺寸
|
||||
@handler GetSizeByProduct
|
||||
get /product/get-size-by-product () returns (response);
|
||||
}
|
||||
|
||||
//获取产品列表
|
||||
type GetProductListReq {
|
||||
Cid int64 `form:"cid"`
|
||||
@@ -78,4 +86,26 @@ type GetSuccessRecommandRsp {
|
||||
Id int64 `json:"id"`
|
||||
SkuId int64 `json:"skuId"`
|
||||
CoverDefault string `json:"coverDefault"`
|
||||
}
|
||||
|
||||
//获取分类下的产品以及尺寸
|
||||
type GetSizeByProductRsp {
|
||||
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"`
|
||||
}
|
||||
type ChildrenObj {
|
||||
Id int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
PriceList []PriceObj `json:"price_list"`
|
||||
}
|
||||
type PriceObj {
|
||||
Num int `json:"num"`
|
||||
Price float64 `json:"price"`
|
||||
}
|
||||
Reference in New Issue
Block a user