删除产品服务无用的接口

This commit is contained in:
laodaming
2023-10-30 16:50:58 +08:00
parent 0c3e93bba6
commit 55f1be350b
15 changed files with 2 additions and 1074 deletions

View File

@@ -13,37 +13,19 @@ service product {
//获取分类产品列表
@handler GetTagProductListHandler
get /api/product/tag_product_list(GetTagProductListReq) returns (response);
//获取产品模型信息(即将废弃)
@handler GetModelByPidHandler
get /api/product/get_model_by_pid(GetModelByPidReq) returns (response);
//获取产品阶梯价格信息
@handler GetProductStepPriceHandler
get /api/product/get_product_step_price(GetProductStepPriceReq) returns (response);
//根据产品+配件搭配计算价格
@handler CalculateProductPriceHandler
post /api/product/calculate_product_price(CalculateProductPriceReq) returns (response);
//获取产品尺寸列表(即将废弃)
@handler GetSizeByPidHandler
get /api/product/get_size_by_pid(GetSizeByPidReq) returns (response);
//获取产品模板(即将废弃)
@handler GetTemplateByPidHandler
get /api/product/get_template_by_pid(GetTemplateByPidReq) returns (response);
//获取产品配件数据(即将废弃)
@handler GetFittingByPidHandler
get /api/product/get_fitting_by_pid(GetFittingByPidReq) returns (response);
//获取产品灯光数据(即将废弃)
@handler GetLightByPidHandler
get /api/product/get_light_by_pid(GetLightByPidReq) returns (response);
//获取产品渲染设置(即将废弃)
@handler GetRenderSettingByPidHandler
get /api/product/get_render_setting_by_pid(GetRenderSettingByPidReq) returns (response);
//获取详情页推荐产品列表
@handler GetRecommendProductListHandler
get /api/product/recommend(GetRecommendProductListReq) returns (response);
//获取列表页推荐产品列表
@handler HomePageRecommendProductListHandler
get /api/product/home_page_recommend(HomePageRecommendProductListReq) returns (response);
//获取产品详情(重构版)
//获取产品详情
@handler GetProductDetailHandler
get /api/product/get_product_detail(GetProductDetailReq) returns (response);
}
@@ -109,10 +91,6 @@ type CoverDefaultItem {
Cover string `json:"cover"`
CoverMetadata interface{} `json:"cover_metadata"`
}
//获取产品模型信息
type GetModelByPidReq {
Pid string `form:"pid"` //实际上是产品sn
}
//获取产品阶梯价格信息
type GetProductStepPriceReq {
ProductId int64 `form:"product_id"`
@@ -129,63 +107,7 @@ type CalculateProductPriceRsp {
TotalPrice string `json:"total_price"`
StepRange interface{} `json:"step_range"`
}
//获取产品尺寸列表
type GetSizeByPidReq {
Pid string `form:"pid"`
TemplateTag string `form:"template_tag"`
}
type GetSizeByPidRsp {
Id int64 `json:"id"` //尺寸id
Title interface{} `json:"title"`
Capacity string `json:"capacity"` //容量、尺寸、尺码描述
Cover string `json:"cover"` //缩略图
PartsCanDeleted bool `json:"parts_can_deleted"` //用户可否删除配件
ModelId int64 `json:"model_id"` //产品主模型id
IsPopular bool `json:"is_popular"` //是否受欢迎
MinPrice string `json:"min_price"` //最小价格
IsDefault bool `json:"is_default"` //是否默认(这里的默认是跟列表页一致)
}
//获取产品模板
type GetTemplateByPidReq {
Pid string `form:"pid"`
ProductSizeId int64 `form:"product_size_id,optional"`
TemplateTag string `form:"template_tag"`
}
//获取产品配件数据
type GetFittingByPidReq {
Pid string `form:"pid"`
}
type GetFittingByPidRsp {
Id int64 `json:"id"`
MaterialImg string `json:"material_img"`
Title string `json:"title"`
Price string `json:"price"`
IsPopular bool `json:"is_popular"`
ModelInfo interface{} `json:"model_info"`
}
//获取产品灯光数据
type GetLightByPidReq {
Pid string `form:"pid"`
}
//获取产品渲染设置
type GetRenderSettingByPidReq {
Pid string `form:"pid"`
ClientNo string `form:"client_no,optional"`
}
type GetRenderSettingByPidRsp {
Id int64 `json:"id"` //产品id
Type int64 `json:"type"` //产品typeid
Title string `json:"title"` //产品名称
IsEnv int64 `json:"isEnv"` //产品标签之一
IsMicro int64 `json:"isMicro"` //产品标签之一
TypeName string `json:"typeName"` //产品类型名称
IsLowRendering bool `json:"is_low_rendering"` //低质量画质渲染开关
IsCustomization int64 `json:"is_customization"` //产品是否可定制
IsRemoveBg bool `json:"is_remove_bg"` //logo上传是否去背景
RenderDesign bool `json:"render_design"` //是否拥有云渲染设计方案
LastDesign bool `json:"last_design"` //是否拥有千人千面设计方案
Colors interface{} `json:"colors"`
}
//获取列表页推荐产品(返回是这个维度数组)
type HomePageRecommendProductListReq {
MerchantType int64 `form:"merchant_type"`