From 29f112212039c73cfb4bff2061cc3184a4cbcdcc Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Wed, 20 Sep 2023 16:57:25 +0800 Subject: [PATCH] fix --- .../internal/logic/gettemplatetagcolorlogic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, })