新增游戏绑定方式,修改任务排行
This commit is contained in:
@ -65,10 +65,11 @@ func (s *sGame) CreateGame(ctx context.Context, in *model.AddGameIn) (out *model
|
||||
}
|
||||
|
||||
_, err = dao.Games.Ctx(ctx).Insert(do.Games{
|
||||
GameId: in.GameId,
|
||||
GameName: in.GameName,
|
||||
GameCode: in.GameCode,
|
||||
Avatar: in.Avatar,
|
||||
GameId: in.GameId,
|
||||
GameName: in.GameName,
|
||||
GameCode: in.GameCode,
|
||||
Avatar: in.Avatar,
|
||||
BoundType: in.BoundType,
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
@ -118,10 +119,11 @@ func (s *sGame) UpdateGame(ctx context.Context, in *model.UpdateGameIn) (out *mo
|
||||
}
|
||||
|
||||
_, err = dao.Games.Ctx(ctx).Where(do.Games{Id: in.Id}).Update(do.Games{
|
||||
GameId: in.GameId,
|
||||
GameName: in.GameName,
|
||||
GameCode: in.GameCode,
|
||||
Avatar: in.Avatar,
|
||||
GameId: in.GameId,
|
||||
GameName: in.GameName,
|
||||
GameCode: in.GameCode,
|
||||
Avatar: in.Avatar,
|
||||
BoundType: in.BoundType,
|
||||
})
|
||||
if err != nil {
|
||||
return nil, ecode.Fail.Sub("修改游戏失败")
|
||||
|
||||
Reference in New Issue
Block a user