From 05510d53d26b50be7af3190f0c746e09b15664ef Mon Sep 17 00:00:00 2001 From: denghui <1016848185@qq.com> Date: Tue, 1 Jul 2025 15:03:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A5=96=E5=8A=B1=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=8E=A5=E5=8F=A3=EF=BC=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/reward/v1/reward.go | 8 ++++---- internal/model/reward.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/api/reward/v1/reward.go b/api/reward/v1/reward.go index 3dfbc72..2dced9f 100644 --- a/api/reward/v1/reward.go +++ b/api/reward/v1/reward.go @@ -215,7 +215,7 @@ type GetLiftReq struct { RewardType int `json:"rewardType" dc:"奖励类型"` RewardId int `json:"rewardId" v:"required#奖励id不能为空" dc:"奖励id"` PopenId string `json:"popenId" v:"required#popenId不能为空" dc:"popenId不能为空"` - Source int `json:"source" v:"required#来源不能为空" dc:"来源" d:"1:系统 2:门店"` + Source int `json:"source" v:"required#来源不能为空" dc:"来源,1:系统 2:门店"` TaskId string `json:"taskId" v:"required#任务id不能为空" dc:"任务Id"` GameId int `json:"gameId" v:"required#游戏id不能为空" dc:"游戏Id"` BindType int `json:"bindType" v:"required#绑定类型不能为空" dc:"绑定类型"` @@ -275,9 +275,9 @@ type GetGoodsDetailsRes struct { type OperateTaskRewardReq struct { g.Meta `path:"/reward/taskReward" method:"post" tags:"Backend/Reward" summary:"(系统管理员、商户管理员、门店管理员)添加任务奖励"` - Type int `json:"type" v:"required#操作类型只能为1或2,1是添加、2是删除" dc:"操作类型"` - TaskId int64 `json:"taskId" v:"required#任务id不能为空" dc:"任务Id"` - RewardId int64 `json:"rewardId" v:"required#奖励id不能为空" dc:"奖励Id"` + Type int `json:"type" v:"required#操作类型只能为1或2,1是添加、2是删除" dc:"操作类型"` + TaskId string `json:"taskId" v:"required#任务id不能为空" dc:"任务Id"` + RewardId int64 `json:"rewardId" v:"required#奖励id不能为空" dc:"奖励Id"` } type OperateTaskRewardRes struct { Success bool `json:"success" dc:"是否成功"` diff --git a/internal/model/reward.go b/internal/model/reward.go index ca50d69..597cf86 100644 --- a/internal/model/reward.go +++ b/internal/model/reward.go @@ -231,7 +231,7 @@ type GetGoodsDetailsOut struct { type OperateTaskRewardIn struct { OperatorId int64 OperatorRole string - TaskId int64 + TaskId string RewardId int64 Type int // 1: 任务添加奖励 2: 任务删除奖励 StoreId int64 // 当前操作门店, 当操作为门店或者是商户时