From 5b92c3833b35f60835924b1dc4fd62c70a375f06 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Mon, 23 Oct 2023 13:05:39 +0800 Subject: [PATCH] fix --- server/product/internal/logic/getproductdetaillogic.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/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"` //产品标题