You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
2.8 KiB
78 lines
2.8 KiB
package controller |
|
|
|
import ( |
|
"context" |
|
"tyj_admin/api/v1/game" |
|
"tyj_admin/internal/serviceGame" |
|
) |
|
|
|
var GameRole = gameRoleController{} |
|
|
|
type gameRoleController struct { |
|
BaseController |
|
} |
|
|
|
// list 玩家角色列表 |
|
func (c *gameRoleController) List(ctx context.Context, req *game.RoleSearchReq) (res *game.RoleSearchRes, err error) { |
|
res, err = serviceGame.GameRole().GetGameRoleListSearch(ctx, req) |
|
return |
|
} |
|
|
|
func (c *gameRoleController) OnlineList(ctx context.Context, req *game.RoleOnlineReq) (res *game.RoleOnlineRes, err error) { |
|
res, err = serviceGame.GameRole().GetOnlineList(ctx, req) |
|
return res, err |
|
} |
|
func (c *gameRoleController) OnlineTopList(ctx context.Context, req *game.RoleOnlineTopReq) (res *game.RoleOnlineTopRes, err error) { |
|
res, err = serviceGame.GameRole().GetOnlineTopList(ctx, req) |
|
return res, err |
|
} |
|
|
|
func (c *gameRoleController) Account(ctx context.Context, req *game.AccountReq) (res *game.AccountRes, err error) { |
|
res, err = serviceGame.GameRole().GetAccount(ctx, req) |
|
return res, err |
|
} |
|
|
|
func (c *gameRoleController) GetLoginOut(ctx context.Context, req *game.GetLoginOutReq) (res *game.GetLoginOutRes, err error) { |
|
res, err = serviceGame.GameRole().GetLoginOut(ctx, req) |
|
return res, err |
|
} |
|
|
|
func (c *gameRoleController) GetLoginOutLog(ctx context.Context, req *game.GetLoginOutLogReq) (res *game.GetLoginOutLogRes, err error) { |
|
res, err = serviceGame.GameRole().GetLoginOutLog(ctx, req) |
|
return res, err |
|
} |
|
|
|
func (c *gameRoleController) GetItemLog(ctx context.Context, req *game.GetItemLogReq) (res *game.GetItemLogRes, err error) { |
|
res, err = serviceGame.GameRole().GetItemLog(ctx, req) |
|
return res, err |
|
} |
|
|
|
func (c *gameRoleController) GetItemLogTwo(ctx context.Context, req *game.GetItemLogTwoReq) (res *game.GetItemLogTwoRes, err error) { |
|
res, err = serviceGame.GameRole().GetItemLogTwo(ctx, req) |
|
return res, err |
|
} |
|
|
|
func (c *gameRoleController) GetKeepAlive(ctx context.Context, req *game.GetKeepAliveReq) (res *game.GetKeepAliveRes, err error) { |
|
res, err = serviceGame.GameManage().GetKeepAlive(ctx, req) |
|
return res, err |
|
} |
|
|
|
func (c *gameRoleController) GetLive(ctx context.Context, req *game.GetLiveReq) (res *game.GetLiveRes, err error) { |
|
res, err = serviceGame.GameManage().GetLive(ctx, req) |
|
return res, err |
|
} |
|
|
|
func (c *gameRoleController) RegisterCount(ctx context.Context, req *game.RegisterCountReq) (res *game.RegisterCountRes, err error) { |
|
res, err = serviceGame.GameManage().RegisterCount(ctx, req) |
|
return res, err |
|
} |
|
|
|
func (c *gameRoleController) GameUserDel(ctx context.Context, req *game.UserDelReq) (res *game.UserDelRes, err error) { |
|
res, err = serviceGame.GameRole().GameUserDel(ctx, req) |
|
return res, err |
|
} |
|
|
|
func (c *gameRoleController) GetLoginOutGm(ctx context.Context, req *game.GetLoginOutGmReq) (res *game.GetLoginOutGmRes, err error) { |
|
res, err = serviceGame.GameRole().GetLoginOutGm(ctx, req) |
|
return res, err |
|
}
|
|
|