整合目前新的详情接口

This commit is contained in:
laodaming
2023-10-17 15:33:46 +08:00
parent 77caf2e631
commit ea1335607a
11 changed files with 568 additions and 64 deletions

View File

@@ -227,55 +227,59 @@ type HomePageRecommendProductListRsp {
}
//获取产品详情(重构版)
type GetProductDetailReq{
ProductId int64 `form:"product_id"`//产品id
TemplateTag string `form:"template_tag"` //模板标签
SelectColorIndex int `form:"select_color_index"` //模板标签颜色索引
type GetProductDetailReq {
ProductId int64 `form:"product_id"` //产品id
TemplateTag string `form:"template_tag"` //模板标签
SelectColorIndex int `form:"select_color_index"` //模板标签颜色索引
Logo string `form:"logo"` //logo地址
}
type GetProductDetailRsp{
type GetProductDetailRsp {
TemplateTagColorInfo TemplateTagColorInfo `json:"template_tag_color_info"` //标签颜色信息
ProductInfo ProductInfo `json:"product_info"` //产品基本信息
BaseColors interface{} `json:"base_colors"` //一些返回写死的颜色
SizeInfo SizeInfo `json:"size_info"` //尺寸相关信息
ProductInfo ProductInfo `json:"product_info"` //产品基本信息
BaseColors interface{} `json:"base_colors"` //一些返回写死的颜色
SizeList []SizeInfo `json:"size_list"` //尺寸相关信息
}
type SizeInfo{
SizeId int64 `json:"size_id"`
Title interface{} `json:"title"`
Capacity string `json:"capacity"`
PartsCanDeleted bool `json:"parts_can_deleted"`
ModelId int64 `json:"model_id"`
IsHot int64 `json:"is_hot"`
MinPrice string `json:"min_price"`
IsDefault bool `json:"is_default"`
TemplateInfo TemplateInfo `json:"template_info"`
ModelInfo ModelInfo `json:"model_info"`
type SizeInfo {
Id int64 `json:"id"` //尺寸id
Title interface{} `json:"title"` //尺寸标题信息
Capacity string `json:"capacity"` //尺寸名称
PartsCanDeleted int64 `json:"parts_can_deleted"` //配件是否可删除
IsHot int64 `json:"is_hot"` //是否热门
MinPrice string `json:"min_price"` //最低价
TemplateInfo interface{} `json:"template_info"` //模板相关信息
ModelInfo ModelInfo `json:"model_info"` //模型相关信息
FittingList []FittingInfo `json:"fitting_List"` //配件相关信息
}
type ModelInfo{
ModelId int64 `json:"model_id"` //模型id
type FittingInfo {
Id int64 `json:"id"` //配件id
IsHot int64 `json:"is_hot"` //是否热门
MaterialImage string `json:"material_image"` //配件材质图
DesignInfo interface{} `json:"design_info"` //配件设计信息
Price string `json:"price"` //配件价格
Name string `json:"name"` //配件名
IsDefault int64 `json:"is_default"` //是否默认的配件
}
type ModelInfo {
Id int64 `json:"id"` //模型id
ModelDesignInfo interface{} `json:"design_info"` //模型设计信息
LightInfo LightInfo `json:"light_info"` //灯光信息
LightInfo LightInfo `json:"light_info"` //灯光信息
}
type LightInfo{
LightId int64 `json:"light_id"` //灯光id
LightName string `json:"light_name"` //灯光组名称
type LightInfo {
Id int64 `json:"id"` //灯光id
LightName string `json:"light_name"` //灯光组名称
LightDesignInfo interface{} `json:"light_design_info"` //灯光设计信息
}
type TemplateInfo {
TemplateSwitchInfo interface{} `json:"template_switch_info"` //对应模板标签下模板的开关信息,同列表页
CombineIsVisible bool `json:"combine_is_visible"` //合图开关是否开启
Material string `json:"material"` //默认素材
}
type ProductInfo{
ProductId int64 `json:"product_id"` //产品id
ProductType int64 `json:"product_type"` //产品类型id
type ProductInfo {
Id int64 `json:"id"` //产品id
ProductType int64 `json:"product_type"` //产品类型id
ProductTypeName string `json:"product_type_name"` //产品类型名称
Title string `json:"title"` //产品标题
IsEnv int64 `json:"is_env"` //是否环保
IsMicro int64 `json:"is_micro"` //是否可微波炉
IsCustomization int64 `json:"is_customization"` //是否可定制产品
Title string `json:"title"` //产品标题
IsEnv int64 `json:"is_env"` //是否环保
IsMicro int64 `json:"is_micro"` //是否可微波炉
IsCustomization int64 `json:"is_customization"` //是否可定制产品
}
type TemplateTagColorInfo{
Colors []string `json:"colors"`
SelectedColorIndex int `json:"selected_color_index"`
TemplateTagGroups interface{} `json:"template_tag_groups"`
type TemplateTagColorInfo {
Colors [][]string `json:"colors"` //传入logo对应的算法颜色组
SelectedColorIndex int `json:"selected_color_index"` //选择的模板标签的颜色索引值
TemplateTagGroups interface{} `json:"template_tag_groups"` //模板标签分组信息
}