实现获取用户角色列表接口

This commit is contained in:
2025-06-19 19:47:34 +08:00
parent cd8ab0f7e8
commit d920cff499
10 changed files with 110 additions and 6 deletions

View File

@ -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:"绑定方式默认值11: qq; 2: wx" default:"1"`
}
type GetUserGameRoleListRes struct {
List interface{} `json:"list"`
}