实现获取用户角色列表接口
This commit is contained in:
@ -20,4 +20,5 @@ type IUserV1 interface {
|
||||
GetBoundUrl(ctx context.Context, req *v1.GetBoundUrlReq) (res *v1.GetBoundUrlRes, err error)
|
||||
GetUnboundUrl(ctx context.Context, req *v1.GetUnboundUrlReq) (res *v1.GetUnboundUrlRes, err error)
|
||||
DelUser(ctx context.Context, req *v1.DelUserReq) (res *v1.DelUserRes, err error)
|
||||
GetUserGameRoleList(ctx context.Context, req *v1.GetUserGameRoleListReq) (res *v1.GetUserGameRoleListRes, err error)
|
||||
}
|
||||
|
||||
@ -99,3 +99,14 @@ type DelUserReq struct {
|
||||
type DelUserRes struct {
|
||||
Success bool `json:"success" dc:"是否成功"`
|
||||
}
|
||||
|
||||
type GetUserGameRoleListReq struct {
|
||||
g.Meta `path:"/user/gameRoleList" method:"get" tags:"User" summary:"(PC)获取用户游戏角色列表"`
|
||||
PopenId string `json:"popenId" v:"required#popenId不能为空" dc:"用户详情接口返回的 wxPopenId 或者是 qqPopenId"`
|
||||
GameId int `json:"gameId" v:"required#gameId不能为空" dc:"游戏id"`
|
||||
Area int `json:"area" v:"required#area不能为空" dc:"游戏区"`
|
||||
BindType int `json:"bindType" v:"required|in:1,2#请选择绑定方式,只能为1或2" dc:"绑定方式,默认值1,1: qq; 2: wx" default:"1"`
|
||||
}
|
||||
type GetUserGameRoleListRes struct {
|
||||
List interface{} `json:"list"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user