新增奖励回调接口,调整奖励领取接口
This commit is contained in:
@ -123,26 +123,37 @@ type RewardListOut struct {
|
||||
|
||||
// RewardCallbackIn 任务奖励领取回调入参
|
||||
type RewardCallbackIn struct {
|
||||
AreaId int
|
||||
GameId int
|
||||
RewradTypeId []int
|
||||
RoleIdx string
|
||||
TaskId string
|
||||
Uid string `json:"uid" ` // 用户账号
|
||||
OrderId string `json:"orderId"` // 订单号必须保证全局唯一(保证接口幂等)
|
||||
PrizeChannelId string `json:"prizeChannelId"` // 券渠道 ID
|
||||
PrizeId string `json:"prizeId"` // 券 ID
|
||||
PrizeType int `json:"prizeType"` // 奖励类型,1 网鱼积分,2 网鱼经验值,3 网鱼兑换码
|
||||
PrizeSubType int `json:"prizeSubType"` // 奖励子类型,默认为 0,有多种子类型时可用,如 1,5 元网费充值券,2、满 30-5 满减券等
|
||||
Num int `json:"num"` // 奖励个数,默认 1,比如经验值 10
|
||||
CustomInfo string `json:"customInfo"` // 透传字段 (json串)
|
||||
}
|
||||
|
||||
type RewardCallbackOut struct {
|
||||
List interface{} `json:"list"`
|
||||
Result int64 `json:"result"`
|
||||
Water Water `json:"water"`
|
||||
Errcode int32 `json:"errcode"`
|
||||
Errmsg string `json:"errmsg"`
|
||||
AppId string `json:"appid"`
|
||||
OrderId string `json:"order_id"`
|
||||
Datas []CallbackData `json:"data"`
|
||||
}
|
||||
|
||||
type CallbackData struct {
|
||||
PrizeCode string `json:"prize_code"`
|
||||
Comment string `json:"comment"`
|
||||
}
|
||||
|
||||
type GetRewardIn struct {
|
||||
AreaId int
|
||||
GameId int
|
||||
RewradTypeId []int
|
||||
RewradTypeId int
|
||||
RoleIdx string
|
||||
TaskId string
|
||||
PopenId string
|
||||
Source int
|
||||
}
|
||||
type GetRewardOut struct {
|
||||
List interface{} `json:"list"`
|
||||
|
||||
Reference in New Issue
Block a user