调整游戏人生封装
This commit is contained in:
@ -15,6 +15,7 @@ func (c *ControllerV1) GetLoginTaskList(ctx context.Context, req *v1.GetLoginTas
|
||||
PopenId: req.PopenId,
|
||||
Num: req.Num,
|
||||
Pageidx: req.Pageidx,
|
||||
BindType: req.BindType,
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
|
||||
@ -188,7 +188,7 @@ func (s *sTask) GetNonLoginTaskList(ctx context.Context, in *model.GetTaskListIn
|
||||
func (s *sTask) GetLoginTaskList(ctx context.Context, in *model.GetTaskListIn) (out *model.GetTaskListOut, err error) {
|
||||
|
||||
// 调用外部接口
|
||||
activity, err := gamelife.GetGamelifeClient(ctx).RequestActivity(ctx, &model.QQNetbarActivityIn{ServiceName: consts.GetTaskList, PopenId: in.PopenId, TaskParam: model.TaskParam{Gid: in.Gid, NetBarAccount: in.NetBarAccount, Num: in.Num, Pageidx: in.Pageidx}})
|
||||
activity, err := gamelife.GetGamelifeClient(ctx).RequestActivity(ctx, &model.QQNetbarActivityIn{ServiceName: consts.GetTaskList, PopenId: in.PopenId, BindType: in.BindType, TaskParam: model.TaskParam{Gid: in.Gid, NetBarAccount: in.NetBarAccount, Num: in.Num, Pageidx: in.Pageidx}})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
@ -62,4 +62,5 @@ type QQNetbarActivityIn struct {
|
||||
ServiceName string // 服务名称
|
||||
TaskParam TaskParam // 参数体
|
||||
PopenId string
|
||||
BindType int
|
||||
}
|
||||
|
||||
@ -17,6 +17,8 @@ type Reward struct {
|
||||
StoreId int64 `json:"storeId" dc:"门店ID,系统内置奖励为NULL" orm:"store_id"`
|
||||
Value int64 `json:"value" dc:"奖励值(如积分数额、优惠金额)" orm:"value"`
|
||||
Status int `json:"status" dc:"状态:1=正常,0=禁用" orm:"status"`
|
||||
TotalNum int64 `json:"totalNum" dc:"奖励数量" orm:"total_num"`
|
||||
UseNum int64 `json:"useNum" dc:"已使用数量" orm:"use_num"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间" orm:"created_at"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" dc:"更新时间" orm:"updated_at"`
|
||||
DeletedAt *gtime.Time `json:"deletedAt" dc:"软删除时间戳" orm:"deleted_at"`
|
||||
|
||||
@ -32,12 +32,13 @@ type GetTaskListIn struct {
|
||||
NetBarAccount string `json:"netbar_account"` //网关账号
|
||||
//Page int `json:"page"` // 分页索引
|
||||
//Size int `json:"size"` // 分页大小
|
||||
Pageidx string `json:"pageidx"` // 分页索引
|
||||
Num int `json:"num"` //
|
||||
Gid int `json:"gid"` // 游戏唯一id
|
||||
Source string `json:"source"` // 不能为空
|
||||
BrandId string `json:"brand_id"` // 品牌id(可选)
|
||||
PopenId string `json:"POpenId"`
|
||||
Pageidx string `json:"pageidx"` // 分页索引
|
||||
Num int `json:"num"` //
|
||||
Gid int `json:"gid"` // 游戏唯一id
|
||||
Source string `json:"source"` // 不能为空
|
||||
BrandId string `json:"brand_id"` // 品牌id(可选)
|
||||
PopenId string `json:"POpenId"`
|
||||
BindType int `json:"bindType"` // 1:QQ 2:微信
|
||||
}
|
||||
|
||||
type GetNonLoginTaskListOut struct {
|
||||
|
||||
Reference in New Issue
Block a user