diff --git a/server/product/internal/logic/getproductdetaillogic.go b/server/product/internal/logic/getproductdetaillogic.go index 9055d1ed..79262e10 100644 --- a/server/product/internal/logic/getproductdetaillogic.go +++ b/server/product/internal/logic/getproductdetaillogic.go @@ -247,6 +247,7 @@ func (l *GetProductDetailLogic) GetProductDetail(req *types.GetProductDetailReq, TemplateTagColorInfo: templateTagColorInfo, ProductInfo: types.ProductInfo{ Id: productInfo.Id, + Description: *productInfo.Intro, ProductType: *productInfo.Type, ProductTypeName: *productTag.Title, Title: *productInfo.Title, diff --git a/server/product/internal/types/types.go b/server/product/internal/types/types.go index 4a8f453d..493a8530 100644 --- a/server/product/internal/types/types.go +++ b/server/product/internal/types/types.go @@ -220,6 +220,7 @@ type LightInfo struct { type ProductInfo struct { Id int64 `json:"id"` //产品id + Description string `json:"description"` //产品描述 ProductType int64 `json:"product_type"` //产品类型id ProductTypeName string `json:"product_type_name"` //产品类型名称 Title string `json:"title"` //产品标题 diff --git a/server_api/product.api b/server_api/product.api index 3c84d00c..2ffb9847 100644 --- a/server_api/product.api +++ b/server_api/product.api @@ -250,6 +250,7 @@ type LightInfo { } type ProductInfo { Id int64 `json:"id"` //产品id + Description string `json:"description"` //产品描述 ProductType int64 `json:"product_type"` //产品类型id ProductTypeName string `json:"product_type_name"` //产品类型名称 Title string `json:"title"` //产品标题