fix
This commit is contained in:
parent
f6f305f0f3
commit
b868ef19ae
@ -48,8 +48,9 @@ type CartSnapshot struct {
|
|||||||
LightInfo LightInfo `json:"light_info"` //灯光数据
|
LightInfo LightInfo `json:"light_info"` //灯光数据
|
||||||
}
|
}
|
||||||
type ProductInfo struct {
|
type ProductInfo struct {
|
||||||
ProductName string `json:"product_name"`
|
ProductName string `json:"product_name"` //产品名
|
||||||
ProductSn string `json:"product_sn"`
|
ProductSn string `json:"product_sn"` //产品sn
|
||||||
|
ProductWebsiteUnit string `json:"product_website_unit"` //产品前台网站单位
|
||||||
}
|
}
|
||||||
type ModelInfo struct {
|
type ModelInfo struct {
|
||||||
ModelJson interface{} `json:"model_json"` //模型设计json数据
|
ModelJson interface{} `json:"model_json"` //模型设计json数据
|
||||||
|
@ -242,6 +242,7 @@ func (l *AddToCartLogic) AddToCart(req *types.AddToCartReq, userinfo *auth.UserI
|
|||||||
ProductInfo: gmodel.ProductInfo{
|
ProductInfo: gmodel.ProductInfo{
|
||||||
ProductName: *productInfo.Title,
|
ProductName: *productInfo.Title,
|
||||||
ProductSn: *productInfo.Sn,
|
ProductSn: *productInfo.Sn,
|
||||||
|
ProductWebsiteUnit: req.ProductWebsiteUnit,
|
||||||
},
|
},
|
||||||
UserDiyInformation: gmodel.UserDiyInformation{
|
UserDiyInformation: gmodel.UserDiyInformation{
|
||||||
Phone: req.DiyInfo.Phone,
|
Phone: req.DiyInfo.Phone,
|
||||||
|
@ -7,6 +7,7 @@ import (
|
|||||||
|
|
||||||
type AddToCartReq struct {
|
type AddToCartReq struct {
|
||||||
ProductId int64 `json:"product_id"` //产品id
|
ProductId int64 `json:"product_id"` //产品id
|
||||||
|
ProductWebsiteUnit string `json:"product_website_unit,optional"` //产品单位
|
||||||
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"` //选择的颜色索引
|
||||||
|
@ -29,6 +29,7 @@ service shopping-cart {
|
|||||||
//加入购物车
|
//加入购物车
|
||||||
type AddToCartReq {
|
type AddToCartReq {
|
||||||
ProductId int64 `json:"product_id"` //产品id
|
ProductId int64 `json:"product_id"` //产品id
|
||||||
|
ProductWebsiteUnit string `json:"product_website_unit,optional"` //产品单位
|
||||||
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"` //选择的颜色索引
|
||||||
|
Loading…
x
Reference in New Issue
Block a user