新增游戏人生领取奖励相关接口
This commit is contained in:
@ -317,3 +317,41 @@ func (s *sReward) List(ctx context.Context, in *model.RewardListIn) (out *model.
|
||||
Total: total,
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (s *sReward) GetLift(ctx context.Context, in *model.RewardCallbackIn) (out *model.RewardCallbackOut, err error) {
|
||||
|
||||
// 遍历奖励类型列表
|
||||
for _, v := range in.RewradTypeId {
|
||||
if v > 0 {
|
||||
// 发背包+兑换
|
||||
|
||||
}
|
||||
if v > 0 {
|
||||
// 直接发背包
|
||||
}
|
||||
}
|
||||
|
||||
// 存储数据库记录
|
||||
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// GetGoodsList 调用外部获取物品列表
|
||||
func (s *sReward) GetGoodsList(ctx context.Context, in *model.GetGoodsListIn) (out *model.GetGoodsListOut, err error) {
|
||||
|
||||
// 调用 tencent
|
||||
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// GetGoods 物品兑换
|
||||
func (s *sReward) GetGoods(ctx context.Context, in *model.GetGoodsGetIn) (out *model.GoodsGetOut, err error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// GetGoodsDetails 物品详情
|
||||
func (s *sReward) GetGoodsDetails(ctx context.Context, in *model.QueryUserGoodsDetailParam) (out *model.QueryUserGoodsDetailResponse, err error) {
|
||||
|
||||
//
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user