Merge branch 'develop' of gitee.com:fusenpack/fusenapi into develop
This commit is contained in:
@@ -46,6 +46,9 @@ service product {
|
||||
//获取列表页推荐产品列表
|
||||
@handler HomePageRecommendProductListHandler
|
||||
get /api/product/home_page_recommend(HomePageRecommendProductListReq) returns (response);
|
||||
//获取产品详情(重构版)
|
||||
@handler GetProductDetailHandler
|
||||
get /api/product/get_product_detail(GetProductDetailReq) returns (response);
|
||||
}
|
||||
|
||||
//获取详情页推荐产品列表
|
||||
@@ -221,4 +224,63 @@ type HomePageRecommendProductListRsp {
|
||||
CoverDefault []CoverDefaultItem `json:"cover_default"`
|
||||
HaveOptionalFitting bool `json:"have_optional_fitting"`
|
||||
IsCustomization int64 `json:"is_customization"`
|
||||
}
|
||||
|
||||
//获取产品详情(重构版)
|
||||
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 {
|
||||
TemplateTagColorInfo TemplateTagColorInfo `json:"template_tag_color_info"` //标签颜色信息
|
||||
ProductInfo ProductInfo `json:"product_info"` //产品基本信息
|
||||
BaseColors interface{} `json:"base_colors"` //一些返回写死的颜色
|
||||
SizeList []SizeInfo `json:"size_list"` //尺寸相关信息
|
||||
}
|
||||
type SizeInfo {
|
||||
Id int64 `json:"id"` //尺寸id
|
||||
IsDefault int64 `json:"is_default"` //是否默认显示
|
||||
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 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"` //灯光信息
|
||||
}
|
||||
type LightInfo {
|
||||
Id int64 `json:"id"` //灯光id
|
||||
LightName string `json:"light_name"` //灯光组名称
|
||||
LightDesignInfo interface{} `json:"light_design_info"` //灯光设计信息
|
||||
}
|
||||
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"` //是否可定制产品
|
||||
}
|
||||
type TemplateTagColorInfo {
|
||||
Colors [][]string `json:"colors"` //传入logo对应的算法颜色组
|
||||
SelectedColorIndex int `json:"selected_color_index"` //选择的模板标签的颜色索引值
|
||||
TemplateTagGroups interface{} `json:"template_tag_groups"` //模板标签分组信息
|
||||
}
|
||||
@@ -18,6 +18,9 @@ service websocket {
|
||||
//通用回调接口
|
||||
@handler CommonNotifyHandler
|
||||
post /api/websocket/common_notify(CommonNotifyReq) returns (response);
|
||||
//关闭某个连接
|
||||
@handler CloseWebsocketHandler
|
||||
post /api/websocket/close_websocket(CloseWebsocketReq) returns (response);
|
||||
}
|
||||
|
||||
//websocket数据交互[
|
||||
@@ -39,4 +42,8 @@ type CommonNotifyReq {
|
||||
UserId int64 `json:"user_id,optional"` //用户id
|
||||
GuestId int64 `json:"guest_id,optional"` //游客id
|
||||
Data map[string]interface{} `json:"data"` //后端与前端约定好的数据
|
||||
}
|
||||
//关闭连接
|
||||
type CloseWebsocketReq {
|
||||
Wid string `json:"wid"`
|
||||
}
|
||||
Reference in New Issue
Block a user