实现用户领取任务接口、用户任务记录接口
This commit is contained in:
@ -21,4 +21,5 @@ type IRewardV1 interface {
|
||||
GetGoods(ctx context.Context, req *v1.GetGoodsReq) (res *v1.GetGoodsRes, err error)
|
||||
GetGoodsDetails(ctx context.Context, req *v1.GetGoodsDetailsReq) (res *v1.GetGoodsDetailsRes, err error)
|
||||
OperateTaskReward(ctx context.Context, req *v1.OperateTaskRewardReq) (res *v1.OperateTaskRewardRes, err error)
|
||||
GetUserRewardsCanClaimList(ctx context.Context, req *v1.GetUserRewardsCanClaimListReq) (res *v1.GetUserRewardsCanClaimListRes, err error)
|
||||
}
|
||||
|
||||
@ -280,3 +280,15 @@ type OperateTaskRewardReq struct {
|
||||
type OperateTaskRewardRes struct {
|
||||
Success bool `json:"success" dc:"是否成功"`
|
||||
}
|
||||
|
||||
type GetUserRewardsCanClaimListReq struct {
|
||||
g.Meta `path:"/reward/canClaim" method:"get" tags:"Reward" summary:"(PC)获取用户可领取的奖励列表"`
|
||||
StoreId int64 `json:"storeId" dc:"门店id"`
|
||||
NetbarAccount string `json:"netbarAccount" dc:"网吧账号"`
|
||||
TaskId string `json:"taskId" dc:"任务id" v:"required#任务id不能为空"`
|
||||
}
|
||||
|
||||
type GetUserRewardsCanClaimListRes struct {
|
||||
List interface{} `json:"list"`
|
||||
Total int `json:"total"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user