实现用户领取任务时,创建对应的奖励记录

This commit is contained in:
2025-06-26 11:15:17 +08:00
parent 085102b99d
commit 9bfdaf5fa2
4 changed files with 11 additions and 8 deletions

View File

@ -27,8 +27,8 @@ type CreateReq struct {
RewardTypeId int64 `json:"rewardTypeId" v:"required#奖励类型ID不能为空" dc:"奖励类型ID"`
GameId int64 `json:"gameId" dc:"游戏ID"`
RewardImg string `json:"rewardImg" dc:"奖励图片"`
QQGoodsId string `json:"qqGoodsId" v:"required#不能为空" dc:"QQ网吧物品ID"`
QQGoodsIdStr string `json:"qqGoodsIdStr" v:"required#不能为空" dc:"QQ网吧物品ID字符串"`
QQGoodsId string `json:"qqGoodsId" dc:"QQ网吧物品ID"`
QQGoodsIdStr string `json:"qqGoodsIdStr" dc:"QQ网吧物品ID字符串"`
Status int `json:"status" dc:"状态" d:"1启用 2禁用"`
ExpireType int `json:"expireType" v:"required#过期类型只能为1或2" dc:"过期类型"`
ValidFrom *gtime.Time `json:"validFrom" dc:"有效开始时间expire_type=1 时使用)"`