From c75e55a5cfa63e7748935f51a9c36e22a1fe56f3 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Tue, 1 Aug 2023 10:30:57 +0800 Subject: [PATCH] fix --- server/product/internal/logic/gettagproductlistlogic.go | 1 + server/product/internal/types/types.go | 1 + server_api/product.api | 1 + 3 files changed, 3 insertions(+) diff --git a/server/product/internal/logic/gettagproductlistlogic.go b/server/product/internal/logic/gettagproductlistlogic.go index 7badfd95..bd17aa12 100644 --- a/server/product/internal/logic/gettagproductlistlogic.go +++ b/server/product/internal/logic/gettagproductlistlogic.go @@ -222,6 +222,7 @@ func (l *GetTagProductListLogic) dealWithTagMenuData(req dealWithTagMenuDataReq) tagTem := types.TagItem{ TagProductList: []interface{}{}, TypeName: *tagInfo.Title, + Description: *tagInfo.Description, TypeId: tagInfo.Id, Icon: *tagInfo.Icon, Sort: *tagInfo.Sort, diff --git a/server/product/internal/types/types.go b/server/product/internal/types/types.go index f2d27f0a..d374460a 100644 --- a/server/product/internal/types/types.go +++ b/server/product/internal/types/types.go @@ -259,6 +259,7 @@ type GetTagProductListRsp struct { type TagItem struct { TypeName string `json:"type_name"` + Description string `json:"description"` TypeId int64 `json:"type_id"` Icon string `json:"icon"` Sort int64 `json:"sort"` diff --git a/server_api/product.api b/server_api/product.api index 48ac5a50..03fb29b6 100644 --- a/server_api/product.api +++ b/server_api/product.api @@ -309,6 +309,7 @@ type GetTagProductListRsp { } type TagItem { TypeName string `json:"type_name"` + Description string `json:"description"` TypeId int64 `json:"type_id"` Icon string `json:"icon"` Sort int64 `json:"sort"`