This commit is contained in:
laodaming 2023-11-24 16:01:29 +08:00
parent e21b0b337f
commit 21f587ed55
4 changed files with 6 additions and 6 deletions

View File

@ -222,7 +222,6 @@ func (l *GetProductDetailLogic) GetProductDetail(req *types.GetProductDetailReq,
//赋值
modelInfoRsp.LightInfo = types.LightInfo{
Id: lightInfo.Id,
LightName: *lightInfo.Name,
LightDesignInfo: lightDesignInfo,
}
}

View File

@ -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)

View File

@ -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 {

View File

@ -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"`
}