fix
This commit is contained in:
parent
e21b0b337f
commit
21f587ed55
|
@ -222,7 +222,6 @@ func (l *GetProductDetailLogic) GetProductDetail(req *types.GetProductDetailReq,
|
|||
//赋值
|
||||
modelInfoRsp.LightInfo = types.LightInfo{
|
||||
Id: lightInfo.Id,
|
||||
LightName: *lightInfo.Name,
|
||||
LightDesignInfo: lightDesignInfo,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -153,7 +153,10 @@ func (l *GetProductModelsLogic) GetProductModels(req *types.GetProductModelsReq,
|
|||
Name: *v.Name,
|
||||
MaterialImage: fittingMaterialImage,
|
||||
DesignInfo: modelDesignInfo,
|
||||
LightInfo: lightDesignInfo,
|
||||
LightInfo: types.LightInfo{
|
||||
Id: *v.Light,
|
||||
LightDesignInfo: lightDesignInfo,
|
||||
},
|
||||
})
|
||||
}
|
||||
mapProductInfo := make(map[int64][]types.ModelItem)
|
||||
|
|
|
@ -150,7 +150,6 @@ type ModelInfo struct {
|
|||
|
||||
type LightInfo struct {
|
||||
Id int64 `json:"id"` //灯光id
|
||||
LightName string `json:"light_name"` //灯光组名称
|
||||
LightDesignInfo interface{} `json:"light_design_info"` //灯光设计信息
|
||||
}
|
||||
|
||||
|
@ -187,7 +186,7 @@ type ModelItem struct {
|
|||
Name string `json:"name"`
|
||||
MaterialImage string `json:"material_image"` //默认贴图
|
||||
DesignInfo interface{} `json:"design_info"`
|
||||
LightInfo interface{} `json:"light_info"`
|
||||
LightInfo LightInfo `json:"light_info"`
|
||||
}
|
||||
|
||||
type Request struct {
|
||||
|
|
|
@ -170,7 +170,6 @@ type ModelInfo {
|
|||
}
|
||||
type LightInfo {
|
||||
Id int64 `json:"id"` //灯光id
|
||||
LightName string `json:"light_name"` //灯光组名称
|
||||
LightDesignInfo interface{} `json:"light_design_info"` //灯光设计信息
|
||||
}
|
||||
type ProductInfo {
|
||||
|
@ -203,5 +202,5 @@ type ModelItem {
|
|||
Name string `json:"name"`
|
||||
MaterialImage string `json:"material_image"` //默认贴图
|
||||
DesignInfo interface{} `json:"design_info"`
|
||||
LightInfo interface{} `json:"light_info"`
|
||||
LightInfo LightInfo `json:"light_info"`
|
||||
}
|
Loading…
Reference in New Issue
Block a user