diff --git a/server/product-template-tag/internal/logic/gettemplatetagcolorlogic.go b/server/product-template-tag/internal/logic/gettemplatetagcolorlogic.go index b393f7d4..4913e396 100644 --- a/server/product-template-tag/internal/logic/gettemplatetagcolorlogic.go +++ b/server/product-template-tag/internal/logic/gettemplatetagcolorlogic.go @@ -85,7 +85,7 @@ func (l *GetTemplateTagColorLogic) GetTemplateTagColor(req *types.GetTemplateTag if req.SelectedColorIndex >= len(colors) { return resp.SetStatusWithMessage(basic.CodeRequestParamsErr, "select color index is out of range !!") } - return resp.SetStatus(basic.CodeOK, "success", types.GetTemplateTagColorRsp{ + return resp.SetStatusWithMessage(basic.CodeOK, "success", types.GetTemplateTagColorRsp{ Colors: colors, SelectedColorIndex: req.SelectedColorIndex, })