This commit is contained in:
laodaming
2023-08-11 14:52:16 +08:00
parent 84749f4d14
commit dbe6e99f2d
4 changed files with 74 additions and 95 deletions

View File

@@ -50,7 +50,7 @@ service product {
//获取产品尺寸列表
@handler GetSizeByPidHandler
get /api/product/get_size_by_pid(GetSizeByPidReq) returns (response);
//获取产品模板列表
//获取产品模板
@handler GetTemplateByPidHandler
get /api/product/get_template_by_pid(GetTemplateByPidReq) returns (response);
//获取产品配件数据
@@ -383,11 +383,15 @@ type GetSizeByPidRsp {
IsPopular bool `json:"is_popular"` //是否受欢迎
MinPrice float64 `json:"min_price"` //最小价格
}
//获取产品模板列表
//获取产品模板
type GetTemplateByPidReq {
Pid string `form:"pid"`
Size uint32 `form:"size"`
ProductTemplateTagId int64 `form:"product_template_tag_id"`
ProductSizeId int64 `form:"product_size_id,optional"`
}
type GetTemplateByPidRsp {
TemplateId int64 `json:"template_id"` //模板id
TemplateInfo interface{} `json:"template_info"` //模板信息
}
//获取产品配件数据
type GetFittingByPidReq {