fix
This commit is contained in:
parent
ba0d6b2525
commit
058c6d6391
|
@ -60,6 +60,7 @@ type FittingInfo struct {
|
||||||
|
|
||||||
}
|
}
|
||||||
type TemplateInfo struct {
|
type TemplateInfo struct {
|
||||||
|
SwitchInfo interface{} `json:"switch_info"`
|
||||||
TemplateJson interface{} `json:"template_json"` //模板设计json数据
|
TemplateJson interface{} `json:"template_json"` //模板设计json数据
|
||||||
TemplateTag string `json:"template_tag"` //模板标签
|
TemplateTag string `json:"template_tag"` //模板标签
|
||||||
SelectColorIndex int64 `json:"select_color_index"` //颜色选择索引
|
SelectColorIndex int64 `json:"select_color_index"` //颜色选择索引
|
||||||
|
|
|
@ -226,6 +226,7 @@ func (l *AddToCartLogic) AddToCart(req *types.AddToCartReq, userinfo *auth.UserI
|
||||||
CombineImage: req.CombineImage,
|
CombineImage: req.CombineImage,
|
||||||
RenderImage: req.RenderImage,
|
RenderImage: req.RenderImage,
|
||||||
TemplateInfo: gmodel.TemplateInfo{
|
TemplateInfo: gmodel.TemplateInfo{
|
||||||
|
SwitchInfo: req.SwitchInfo,
|
||||||
TemplateJson: templateJson,
|
TemplateJson: templateJson,
|
||||||
TemplateTag: templateTag,
|
TemplateTag: templateTag,
|
||||||
SelectColorIndex: req.SelectColorIndex,
|
SelectColorIndex: req.SelectColorIndex,
|
||||||
|
|
|
@ -6,17 +6,18 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
type AddToCartReq struct {
|
type AddToCartReq struct {
|
||||||
ProductId int64 `json:"product_id"` //产品id
|
ProductId int64 `json:"product_id"` //产品id
|
||||||
TemplateId int64 `json:"template_id,optional"` //模板id(不可定制的不传)
|
TemplateId int64 `json:"template_id,optional"` //模板id(不可定制的不传)
|
||||||
IsHighlyCustomized int64 `json:"is_highly_customized"` //是否高度定制
|
IsHighlyCustomized int64 `json:"is_highly_customized"` //是否高度定制
|
||||||
SelectColorIndex int64 `json:"select_color_index"` //选择的颜色索引
|
SelectColorIndex int64 `json:"select_color_index"` //选择的颜色索引
|
||||||
SizeId int64 `json:"size_id"` //尺寸id
|
SizeId int64 `json:"size_id"` //尺寸id
|
||||||
FittingId int64 `json:"fitting_id,optional"` //配件id(没有可以不传)
|
FittingId int64 `json:"fitting_id,optional"` //配件id(没有可以不传)
|
||||||
PurchaseQuantity int64 `json:"purchase_quantity"` //购买数量
|
PurchaseQuantity int64 `json:"purchase_quantity"` //购买数量
|
||||||
Logo string `json:"logo,optional"` //logo地址(没有可以不传)
|
Logo string `json:"logo,optional"` //logo地址(没有可以不传)
|
||||||
CombineImage string `json:"combine_image,optional"` //合图地址 (没有可以不传)
|
CombineImage string `json:"combine_image,optional"` //合图地址 (没有可以不传)
|
||||||
RenderImage string `json:"render_image,optional"` //渲染结果图 (没有可以不传)
|
RenderImage string `json:"render_image,optional"` //渲染结果图 (没有可以不传)
|
||||||
DiyInfo DiyInfo `json:"diy_info,optional"` //用户diy数据(可选)
|
SwitchInfo map[string]interface{} `json:"switch_info,optional"` //开关信息
|
||||||
|
DiyInfo DiyInfo `json:"diy_info,optional"` //用户diy数据(可选)
|
||||||
}
|
}
|
||||||
|
|
||||||
type DiyInfo struct {
|
type DiyInfo struct {
|
||||||
|
|
|
@ -28,17 +28,18 @@ service shopping-cart {
|
||||||
|
|
||||||
//加入购物车
|
//加入购物车
|
||||||
type AddToCartReq {
|
type AddToCartReq {
|
||||||
ProductId int64 `json:"product_id"` //产品id
|
ProductId int64 `json:"product_id"` //产品id
|
||||||
TemplateId int64 `json:"template_id,optional"` //模板id(不可定制的不传)
|
TemplateId int64 `json:"template_id,optional"` //模板id(不可定制的不传)
|
||||||
IsHighlyCustomized int64 `json:"is_highly_customized"` //是否高度定制
|
IsHighlyCustomized int64 `json:"is_highly_customized"` //是否高度定制
|
||||||
SelectColorIndex int64 `json:"select_color_index"` //选择的颜色索引
|
SelectColorIndex int64 `json:"select_color_index"` //选择的颜色索引
|
||||||
SizeId int64 `json:"size_id"` //尺寸id
|
SizeId int64 `json:"size_id"` //尺寸id
|
||||||
FittingId int64 `json:"fitting_id,optional"` //配件id(没有可以不传)
|
FittingId int64 `json:"fitting_id,optional"` //配件id(没有可以不传)
|
||||||
PurchaseQuantity int64 `json:"purchase_quantity"` //购买数量
|
PurchaseQuantity int64 `json:"purchase_quantity"` //购买数量
|
||||||
Logo string `json:"logo,optional"` //logo地址(没有可以不传)
|
Logo string `json:"logo,optional"` //logo地址(没有可以不传)
|
||||||
CombineImage string `json:"combine_image,optional"` //合图地址 (没有可以不传)
|
CombineImage string `json:"combine_image,optional"` //合图地址 (没有可以不传)
|
||||||
RenderImage string `json:"render_image,optional"` //渲染结果图 (没有可以不传)
|
RenderImage string `json:"render_image,optional"` //渲染结果图 (没有可以不传)
|
||||||
DiyInfo DiyInfo `json:"diy_info,optional"` //用户diy数据(可选)
|
SwitchInfo map[string]interface{} `json:"switch_info,optional"` //开关信息
|
||||||
|
DiyInfo DiyInfo `json:"diy_info,optional"` //用户diy数据(可选)
|
||||||
}
|
}
|
||||||
type DiyInfo {
|
type DiyInfo {
|
||||||
Phone string `json:"phone,optional"` //电话(可选)
|
Phone string `json:"phone,optional"` //电话(可选)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user