diff --git a/server/product/internal/logic/getrendersettingbypidlogic.go b/server/product/internal/logic/getrendersettingbypidlogic.go index b4cbdfda..3529de22 100644 --- a/server/product/internal/logic/getrendersettingbypidlogic.go +++ b/server/product/internal/logic/getrendersettingbypidlogic.go @@ -86,17 +86,18 @@ func (l *GetRenderSettingByPidLogic) GetRenderSettingByPid(req *types.GetRenderS } } return resp.SetStatusWithMessage(basic.CodeOK, "success", types.GetRenderSettingByPidRsp{ - Id: productInfo.Id, - Type: *productInfo.Type, - Title: *productInfo.Title, - IsEnv: *productInfo.IsProtection, - IsMicro: *productInfo.IsMicrowave, - TypeName: *tagInfo.Title, - IsLowRendering: isLowRendering, - IsRemoveBg: isRemoveBg, - RenderDesign: renderDesign, - LastDesign: lastDesign, - Colors: color_list.GetColor(), + Id: productInfo.Id, + Type: *productInfo.Type, + Title: *productInfo.Title, + IsEnv: *productInfo.IsProtection, + IsMicro: *productInfo.IsMicrowave, + TypeName: *tagInfo.Title, + IsLowRendering: isLowRendering, + IsCustomization: *productInfo.IsCustomization, + IsRemoveBg: isRemoveBg, + RenderDesign: renderDesign, + LastDesign: lastDesign, + Colors: color_list.GetColor(), }) } diff --git a/server/product/internal/types/types.go b/server/product/internal/types/types.go index a7e2b48b..7aed63d2 100644 --- a/server/product/internal/types/types.go +++ b/server/product/internal/types/types.go @@ -375,17 +375,18 @@ type GetRenderSettingByPidReq struct { } type GetRenderSettingByPidRsp struct { - Id int64 `json:"id"` //产品id - Type int64 `json:"type"` //产品typeid - Title string `json:"title"` //产品名称 - IsEnv int64 `json:"isEnv"` //产品标签之一 - IsMicro int64 `json:"isMicro"` //产品标签之一 - TypeName string `json:"typeName"` //产品类型名称 - IsLowRendering bool `json:"is_low_rendering"` //低质量画质渲染开关 - IsRemoveBg bool `json:"is_remove_bg"` //logo上传是否去背景 - RenderDesign bool `json:"render_design"` //是否拥有云渲染设计方案 - LastDesign bool `json:"last_design"` //是否拥有千人千面设计方案 - Colors interface{} `json:"colors"` + Id int64 `json:"id"` //产品id + Type int64 `json:"type"` //产品typeid + Title string `json:"title"` //产品名称 + IsEnv int64 `json:"isEnv"` //产品标签之一 + IsMicro int64 `json:"isMicro"` //产品标签之一 + TypeName string `json:"typeName"` //产品类型名称 + IsLowRendering bool `json:"is_low_rendering"` //低质量画质渲染开关 + IsCustomization int64 `json:"is_customization"` //产品是否可定制 + IsRemoveBg bool `json:"is_remove_bg"` //logo上传是否去背景 + RenderDesign bool `json:"render_design"` //是否拥有云渲染设计方案 + LastDesign bool `json:"last_design"` //是否拥有千人千面设计方案 + Colors interface{} `json:"colors"` } type GetLastProductDesignRsp struct { diff --git a/server_api/product.api b/server_api/product.api index b309c6dd..8a507386 100644 --- a/server_api/product.api +++ b/server_api/product.api @@ -418,17 +418,18 @@ type GetRenderSettingByPidReq { ClientNo string `form:"client_no,optional"` } type GetRenderSettingByPidRsp { - Id int64 `json:"id"` //产品id - Type int64 `json:"type"` //产品typeid - Title string `json:"title"` //产品名称 - IsEnv int64 `json:"isEnv"` //产品标签之一 - IsMicro int64 `json:"isMicro"` //产品标签之一 - TypeName string `json:"typeName"` //产品类型名称 - IsLowRendering bool `json:"is_low_rendering"` //低质量画质渲染开关 - IsRemoveBg bool `json:"is_remove_bg"` //logo上传是否去背景 - RenderDesign bool `json:"render_design"` //是否拥有云渲染设计方案 - LastDesign bool `json:"last_design"` //是否拥有千人千面设计方案 - Colors interface{} `json:"colors"` + Id int64 `json:"id"` //产品id + Type int64 `json:"type"` //产品typeid + Title string `json:"title"` //产品名称 + IsEnv int64 `json:"isEnv"` //产品标签之一 + IsMicro int64 `json:"isMicro"` //产品标签之一 + TypeName string `json:"typeName"` //产品类型名称 + IsLowRendering bool `json:"is_low_rendering"` //低质量画质渲染开关 + IsCustomization int64 `json:"is_customization"` //产品是否可定制 + IsRemoveBg bool `json:"is_remove_bg"` //logo上传是否去背景 + RenderDesign bool `json:"render_design"` //是否拥有云渲染设计方案 + LastDesign bool `json:"last_design"` //是否拥有千人千面设计方案 + Colors interface{} `json:"colors"` } //获取产品千人千面设计方案 type GetLastProductDesignRsp {