This commit is contained in:
laodaming 2023-09-11 16:20:09 +08:00
parent 74f25d23cf
commit 899581ba63
3 changed files with 36 additions and 33 deletions

View File

@ -86,17 +86,18 @@ func (l *GetRenderSettingByPidLogic) GetRenderSettingByPid(req *types.GetRenderS
} }
} }
return resp.SetStatusWithMessage(basic.CodeOK, "success", types.GetRenderSettingByPidRsp{ return resp.SetStatusWithMessage(basic.CodeOK, "success", types.GetRenderSettingByPidRsp{
Id: productInfo.Id, Id: productInfo.Id,
Type: *productInfo.Type, Type: *productInfo.Type,
Title: *productInfo.Title, Title: *productInfo.Title,
IsEnv: *productInfo.IsProtection, IsEnv: *productInfo.IsProtection,
IsMicro: *productInfo.IsMicrowave, IsMicro: *productInfo.IsMicrowave,
TypeName: *tagInfo.Title, TypeName: *tagInfo.Title,
IsLowRendering: isLowRendering, IsLowRendering: isLowRendering,
IsRemoveBg: isRemoveBg, IsCustomization: *productInfo.IsCustomization,
RenderDesign: renderDesign, IsRemoveBg: isRemoveBg,
LastDesign: lastDesign, RenderDesign: renderDesign,
Colors: color_list.GetColor(), LastDesign: lastDesign,
Colors: color_list.GetColor(),
}) })
} }

View File

@ -375,17 +375,18 @@ type GetRenderSettingByPidReq struct {
} }
type GetRenderSettingByPidRsp struct { type GetRenderSettingByPidRsp struct {
Id int64 `json:"id"` //产品id Id int64 `json:"id"` //产品id
Type int64 `json:"type"` //产品typeid Type int64 `json:"type"` //产品typeid
Title string `json:"title"` //产品名称 Title string `json:"title"` //产品名称
IsEnv int64 `json:"isEnv"` //产品标签之一 IsEnv int64 `json:"isEnv"` //产品标签之一
IsMicro int64 `json:"isMicro"` //产品标签之一 IsMicro int64 `json:"isMicro"` //产品标签之一
TypeName string `json:"typeName"` //产品类型名称 TypeName string `json:"typeName"` //产品类型名称
IsLowRendering bool `json:"is_low_rendering"` //低质量画质渲染开关 IsLowRendering bool `json:"is_low_rendering"` //低质量画质渲染开关
IsRemoveBg bool `json:"is_remove_bg"` //logo上传是否去背景 IsCustomization int64 `json:"is_customization"` //产品是否可定制
RenderDesign bool `json:"render_design"` //是否拥有云渲染设计方案 IsRemoveBg bool `json:"is_remove_bg"` //logo上传是否去背景
LastDesign bool `json:"last_design"` //是否拥有千人千面设计方案 RenderDesign bool `json:"render_design"` //是否拥有云渲染设计方案
Colors interface{} `json:"colors"` LastDesign bool `json:"last_design"` //是否拥有千人千面设计方案
Colors interface{} `json:"colors"`
} }
type GetLastProductDesignRsp struct { type GetLastProductDesignRsp struct {

View File

@ -418,17 +418,18 @@ type GetRenderSettingByPidReq {
ClientNo string `form:"client_no,optional"` ClientNo string `form:"client_no,optional"`
} }
type GetRenderSettingByPidRsp { type GetRenderSettingByPidRsp {
Id int64 `json:"id"` //产品id Id int64 `json:"id"` //产品id
Type int64 `json:"type"` //产品typeid Type int64 `json:"type"` //产品typeid
Title string `json:"title"` //产品名称 Title string `json:"title"` //产品名称
IsEnv int64 `json:"isEnv"` //产品标签之一 IsEnv int64 `json:"isEnv"` //产品标签之一
IsMicro int64 `json:"isMicro"` //产品标签之一 IsMicro int64 `json:"isMicro"` //产品标签之一
TypeName string `json:"typeName"` //产品类型名称 TypeName string `json:"typeName"` //产品类型名称
IsLowRendering bool `json:"is_low_rendering"` //低质量画质渲染开关 IsLowRendering bool `json:"is_low_rendering"` //低质量画质渲染开关
IsRemoveBg bool `json:"is_remove_bg"` //logo上传是否去背景 IsCustomization int64 `json:"is_customization"` //产品是否可定制
RenderDesign bool `json:"render_design"` //是否拥有云渲染设计方案 IsRemoveBg bool `json:"is_remove_bg"` //logo上传是否去背景
LastDesign bool `json:"last_design"` //是否拥有千人千面设计方案 RenderDesign bool `json:"render_design"` //是否拥有云渲染设计方案
Colors interface{} `json:"colors"` LastDesign bool `json:"last_design"` //是否拥有千人千面设计方案
Colors interface{} `json:"colors"`
} }
//获取产品千人千面设计方案 //获取产品千人千面设计方案
type GetLastProductDesignRsp { type GetLastProductDesignRsp {