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.
35 lines
1018 B
35 lines
1018 B
3 years ago
|
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) RoleDetail(ctx context.Context, req *game.RoleDetailReq) (res *game.RoleDetailRes, err error) {
|
||
|
res, err = serviceGame.GameRole().GetRoleDetail(ctx, req)
|
||
|
return res, err
|
||
|
}
|
||
|
|
||
|
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) AccountList(ctx context.Context, req *game.AccountReq) (res *game.AccountRes, err error) {
|
||
|
res, err = serviceGame.GameRole().GetAccount(ctx, req)
|
||
|
return res, err
|
||
|
}
|