新增游戏绑定方式,修改任务排行
This commit is contained in:
@ -16,11 +16,12 @@ type ListRes struct {
|
||||
}
|
||||
|
||||
type CreateReq struct {
|
||||
g.Meta `path:"/game" method:"post" tags:"Game" summary:"(系统)创建游戏"`
|
||||
GameID int64 `json:"gameId" v:"required#游戏ID不能为空" dc:"游戏ID"`
|
||||
GameName string `json:"gameName" v:"required#游戏名称不能为空" dc:"游戏名称"`
|
||||
GameCode string `json:"gameCode" v:"required#游戏代号不能为空" dc:"游戏代号"`
|
||||
Avatar string `json:"avatar" dc:"游戏图标"`
|
||||
g.Meta `path:"/game" method:"post" tags:"Game" summary:"(系统)创建游戏"`
|
||||
GameID int64 `json:"gameId" v:"required#游戏ID不能为空" dc:"游戏ID"`
|
||||
GameName string `json:"gameName" v:"required#游戏名称不能为空" dc:"游戏名称"`
|
||||
GameCode string `json:"gameCode" v:"required#游戏代号不能为空" dc:"游戏代号"`
|
||||
Avatar string `json:"avatar" dc:"游戏图标"`
|
||||
BoundType int64 `json:"boundType" v:"required#绑定类型不能为空" dc:"绑定类型"`
|
||||
}
|
||||
|
||||
type CreateRes struct {
|
||||
@ -28,12 +29,13 @@ type CreateRes struct {
|
||||
}
|
||||
|
||||
type UpdateReq struct {
|
||||
g.Meta `path:"/game" method:"put" tags:"Game" summary:"(系统)更新游戏"`
|
||||
GameID int64 `json:"gameId" v:"required#游戏ID不能为空" dc:"游戏ID"`
|
||||
GameName string `json:"gameName" v:"required#游戏名称不能为空" dc:"游戏名称"`
|
||||
GameCode string `json:"gameCode" v:"required#游戏代号不能为空" dc:"游戏代号"`
|
||||
Avatar string `json:"avatar" dc:"游戏图标"`
|
||||
Id int64 `json:"id" v:"required#ID不能为空" dc:"ID"`
|
||||
g.Meta `path:"/game" method:"put" tags:"Game" summary:"(系统)更新游戏"`
|
||||
GameID int64 `json:"gameId" v:"required#游戏ID不能为空" dc:"游戏ID"`
|
||||
GameName string `json:"gameName" v:"required#游戏名称不能为空" dc:"游戏名称"`
|
||||
GameCode string `json:"gameCode" v:"required#游戏代号不能为空" dc:"游戏代号"`
|
||||
Avatar string `json:"avatar" dc:"游戏图标"`
|
||||
Id int64 `json:"id" v:"required#ID不能为空" dc:"ID"`
|
||||
BoundType int64 `json:"boundType" v:"required#绑定类型不能为空" dc:"绑定类型"`
|
||||
}
|
||||
|
||||
type UpdateRes struct {
|
||||
|
||||
Reference in New Issue
Block a user