新增游戏绑定方式,修改任务排行
This commit is contained in:
@ -11,10 +11,11 @@ import (
|
||||
func (c *ControllerV1) Create(ctx context.Context, req *v1.CreateReq) (res *v1.CreateRes, err error) {
|
||||
|
||||
out, err := service.Game().CreateGame(ctx, &model.AddGameIn{
|
||||
Avatar: req.Avatar,
|
||||
GameCode: req.GameCode,
|
||||
GameId: req.GameID,
|
||||
GameName: req.GameName,
|
||||
Avatar: req.Avatar,
|
||||
GameCode: req.GameCode,
|
||||
GameId: req.GameID,
|
||||
GameName: req.GameName,
|
||||
BoundType: req.BoundType,
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
|
||||
@ -13,7 +13,14 @@ func (c *ControllerV1) List(ctx context.Context, req *v1.ListReq) (res *v1.ListR
|
||||
fromCtx := g.RequestFromCtx(ctx)
|
||||
operatorId := fromCtx.GetCtxVar("id").Int64()
|
||||
operatorRole := fromCtx.GetCtxVar("role").String()
|
||||
out, err := service.Reward().List(ctx, &model.RewardListIn{Page: req.Page, Size: req.Size, OperatorId: operatorId, OperatorRole: operatorRole, StoreId: req.StoreId})
|
||||
out, err := service.Reward().List(ctx, &model.RewardListIn{Page: req.Page,
|
||||
Size: req.Size,
|
||||
OperatorId: operatorId,
|
||||
OperatorRole: operatorRole,
|
||||
StoreId: req.StoreId,
|
||||
Name: req.Name,
|
||||
Status: req.Status,
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user