Merge branch 'develop' of https://gitee.com/fusenpack/fusenapi into develop
This commit is contained in:
@@ -16,9 +16,6 @@ service product {
|
||||
//获取产品模型信息
|
||||
@handler GetModelByPidHandler
|
||||
get /api/product/get_model_by_pid(GetModelByPidReq) returns (response);
|
||||
//获取产品阶梯价格列表(即将废弃)
|
||||
@handler GetPriceByPidHandler
|
||||
get /api/product/get_price_by_pid(GetPriceByPidReq) returns (response);
|
||||
//获取产品阶梯价格信息
|
||||
@handler GetProductStepPriceHandler
|
||||
get /api/product/get_product_step_price(GetProductStepPriceReq) returns (response);
|
||||
@@ -53,24 +50,25 @@ service product {
|
||||
|
||||
//获取详情页推荐产品列表
|
||||
type GetRecommandProductListReq {
|
||||
Size int32 `form:"size,optional"`
|
||||
Num int64 `form:"num,optional"`
|
||||
Sn string `form:"sn"`
|
||||
Num int64 `form:"num,optional"`
|
||||
ProductId int64 `form:"product_id"`
|
||||
}
|
||||
type GetRecommandProductListRsp {
|
||||
Id int64 `json:"id"`
|
||||
Sn string `json:"sn"`
|
||||
Title string `json:"title"`
|
||||
TitleCn string `json:"title_cn"`
|
||||
Cover string `json:"cover"`
|
||||
CoverMetadata interface{} `json:"cover_metadata"`
|
||||
CoverImg string `json:"cover_img"`
|
||||
CoverImgMetadata interface{} `json:"cover_img_metadata"`
|
||||
CoverDefault []CoverDefaultItem `json:"cover_default"`
|
||||
Intro string `json:"intro"`
|
||||
Recommend bool `json:"recommend"`
|
||||
MinPrice int64 `json:"min_price"`
|
||||
IsCustomization int64 `json:"is_customization"`
|
||||
Id int64 `json:"id"`
|
||||
Sn string `json:"sn"`
|
||||
Title string `json:"title"`
|
||||
TitleCn string `json:"title_cn"`
|
||||
Cover string `json:"cover"`
|
||||
CoverMetadata interface{} `json:"cover_metadata"`
|
||||
CoverImg string `json:"cover_img"`
|
||||
CoverImgMetadata interface{} `json:"cover_img_metadata"`
|
||||
CoverDefault []CoverDefaultItem `json:"cover_default"`
|
||||
Intro string `json:"intro"`
|
||||
Recommend bool `json:"recommend"`
|
||||
MinPrice int64 `json:"min_price"`
|
||||
IsCustomization int64 `json:"is_customization"`
|
||||
SizeCount int64 `json:"size_count"`
|
||||
HaveOptionalFitting bool `json:"have_optional_fitting"`
|
||||
}
|
||||
//获取分类产品列表
|
||||
type GetTagProductListReq {
|
||||
@@ -115,26 +113,6 @@ type CoverDefaultItem {
|
||||
type GetModelByPidReq {
|
||||
Pid string `form:"pid"` //实际上是产品sn
|
||||
}
|
||||
//获取产品阶梯价格
|
||||
type GetPriceByPidReq {
|
||||
Pid string `form:"pid"`
|
||||
}
|
||||
type GetPriceByPidRsp {
|
||||
Items []PriceItem `json:"items"`
|
||||
MinPrice float64 `json:"min_price"`
|
||||
MaxPrice float64 `json:"max_price"`
|
||||
StepRange []StepRange `json:"step_range"`
|
||||
}
|
||||
type StepRange {
|
||||
Begin int64 `json:"begin"`
|
||||
End int64 `json:"end"`
|
||||
Price float64 `json:"price"`
|
||||
}
|
||||
type PriceItem {
|
||||
Num int64 `json:"num"`
|
||||
TotalNum int64 `json:"total_num"`
|
||||
Price int64 `json:"price"`
|
||||
}
|
||||
//获取产品阶梯价格信息
|
||||
type GetProductStepPriceReq {
|
||||
ProductId int64 `form:"product_id"`
|
||||
@@ -228,10 +206,10 @@ type HomePageRecommendProductListRsp {
|
||||
|
||||
//获取产品详情(重构版)
|
||||
type GetProductDetailReq {
|
||||
ProductId int64 `form:"product_id"` //产品id
|
||||
TemplateTag string `form:"template_tag"` //模板标签
|
||||
SelectColorIndex int `form:"select_color_index"` //模板标签颜色索引
|
||||
Logo string `form:"logo"` //logo地址
|
||||
ProductId int64 `form:"product_id"` //产品id
|
||||
TemplateTag string `form:"template_tag"` //模板标签
|
||||
SelectedColorIndex int `form:"selected_color_index"` //模板标签颜色索引
|
||||
Logo string `form:"logo"` //logo地址
|
||||
}
|
||||
type GetProductDetailRsp {
|
||||
TemplateTagColorInfo TemplateTagColorInfo `json:"template_tag_color_info"` //标签颜色信息
|
||||
|
||||
@@ -21,6 +21,9 @@ service shopping-cart {
|
||||
//计算购物车价格
|
||||
@handler CalculateCartPriceHandler
|
||||
post /api/shopping-cart/calculate_cart_price(CalculateCartPriceReq) returns (response);
|
||||
//获取购物车数量
|
||||
@handler GetCartNumHandler
|
||||
get /api/shopping-cart/get_cart_num(request) returns (response);
|
||||
}
|
||||
|
||||
//加入购物车
|
||||
@@ -122,4 +125,8 @@ type CalculateResultItem {
|
||||
CartId int64 `json:"cart_id"` //购物车id
|
||||
ItemPrice string `json:"item_price"` //单价
|
||||
TotalPrice string `json:"total_price"` //总价
|
||||
}
|
||||
//获取购物车数量
|
||||
type GetCartNumRsp {
|
||||
TotalCount int64 `json:"total_count"`
|
||||
}
|
||||
Reference in New Issue
Block a user