diff --git a/cv/user_cv/bag.go b/cv/user_cv/bag.go index 3ce3974a2207add28f83ae30c47d228ca3bdac9e..37174ef3f9b6ea875f71264ee4b8378c7dd04a86 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 660cbe910046f4e19ccef6b9dacbb5bca9d644fa..fb3038da67fc0a90a4b81562d9072ce6b19f0626 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 da49122a92a798c4208fb91557d60252c0ca6ab3..1ad7bb73d6b445c52e611e83ed23772b6cc056b6 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,