From 62dd14a6276380ce46779222247f175f8e20dab2 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Wed, 25 Oct 2023 14:59:27 +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 cce5378b..bc2f7652 100644 --- a/server/product/internal/logic/gettagproductlistlogic.go +++ b/server/product/internal/logic/gettagproductlistlogic.go @@ -428,6 +428,7 @@ func (l *GetTagProductListLogic) getTagProducts(req getTagProductsReq) (productL } item := types.TagProduct{ Id: productInfo.Id, + ProductId: productInfo.Id, Sn: *productInfo.Sn, Title: *productInfo.Title, SizeNum: uint32(sizeNum), diff --git a/server/product/internal/types/types.go b/server/product/internal/types/types.go index c1833896..1ac32f81 100644 --- a/server/product/internal/types/types.go +++ b/server/product/internal/types/types.go @@ -52,6 +52,7 @@ type TagItem struct { type TagProduct struct { Id int64 `json:"id"` + ProductId int64 `json:"product_id"` //后面删掉这个 Sn string `json:"sn"` Title string `json:"title"` Cover string `json:"cover"` diff --git a/server_api/product.api b/server_api/product.api index 7dc15731..50a17da0 100644 --- a/server_api/product.api +++ b/server_api/product.api @@ -92,6 +92,7 @@ type TagItem { } type TagProduct { Id int64 `json:"id"` + ProductId int64 `json:"product_id"` //后面删掉这个 Sn string `json:"sn"` Title string `json:"title"` Cover string `json:"cover"`