From 681bf0f0999481c68856ba50f93a31d6fd784f97 Mon Sep 17 00:00:00 2001 From: hujiebin Date: Wed, 22 Feb 2023 14:54:27 +0800 Subject: [PATCH] 1 --- cv/user_cv/bag.go | 1 + route/user_r/bag.go | 1 + route/user_r/inner.go | 1 + 3 files changed, 3 insertions(+) diff --git a/cv/user_cv/bag.go b/cv/user_cv/bag.go index 3ce3974..37174ef 100644 --- a/cv/user_cv/bag.go +++ b/cv/user_cv/bag.go @@ -8,6 +8,7 @@ type UserBag struct { BagId mysql.ID `json:"bagId"` // 背包id ResType mysql.Type `json:"resType"` // 道具类型 1:礼物道具 ResId mysql.ID `json:"resId"` // 道具资源id + GiftId mysql.ID `json:"giftId"` // 道具的礼物id Name string `json:"name"` // 资源名称 DiamondNum mysql.Num `json:"diamondNum"` // 钻石数量 IconUrl string `json:"iconUrl"` // icon url diff --git a/route/user_r/bag.go b/route/user_r/bag.go index 660cbe9..fb3038d 100644 --- a/route/user_r/bag.go +++ b/route/user_r/bag.go @@ -48,6 +48,7 @@ func UserBag(c *gin.Context) (*mycontext.MyContext, error) { BagId: bagGift.ID, ResType: res_e.ResUserBagGift, ResId: gift.ID, + GiftId: gift.ID, Name: gift.Name, DiamondNum: gift.DiamondNum, IconUrl: gift.IconUrl, diff --git a/route/user_r/inner.go b/route/user_r/inner.go index da49122..1ad7bb7 100644 --- a/route/user_r/inner.go +++ b/route/user_r/inner.go @@ -75,6 +75,7 @@ func GetUserBag(c *gin.Context) (*mycontext.MyContext, error) { BagId: bag.ID, ResType: bag.ResType, ResId: bag.ResId, + GiftId: bag.ResId, Name: gift.Name, DiamondNum: gift.DiamondNum, IconUrl: gift.IconUrl, -- 2.22.0