58 lines
1.4 KiB
Go
58 lines
1.4 KiB
Go
package model
|
|
|
|
type Game struct {
|
|
GameId int64 `json:"gameId" orm:"game_id"` // 腾讯游戏 id
|
|
GameName string `json:"gameName" orm:"game_name"` // 游戏名称
|
|
GameCode string `json:"gameCode" orm:"game_code"` // 游戏代号
|
|
Avatar string `json:"avatar" orm:"avatar"` // 图标
|
|
}
|
|
|
|
// GameListIn 游戏列表入参
|
|
type GameListIn struct {
|
|
Page int `json:"page"`
|
|
Size int `json:"size"`
|
|
}
|
|
|
|
// GameListOut 游戏列表出参
|
|
type GameListOut struct {
|
|
List interface{} `json:"list" dc:"游戏列表"`
|
|
Total int `json:"total" dc:"总数"`
|
|
}
|
|
|
|
// AddGameIn 新增游戏入参
|
|
type AddGameIn struct {
|
|
GameName string `json:"gameName"`
|
|
GameCode string `json:"gameCode"`
|
|
Avatar string `json:"avatar"`
|
|
GameId int64 `json:"gameId"`
|
|
}
|
|
|
|
// AddGameOut 新增游戏出参
|
|
type AddGameOut struct {
|
|
Success bool `json:"success" dc:"是否成功"`
|
|
}
|
|
|
|
// UpdateGameIn 更新游戏入参
|
|
type UpdateGameIn struct {
|
|
GameName string `json:"gameName"`
|
|
GameCode string `json:"gameCode"`
|
|
Avatar string `json:"avatar"`
|
|
GameId int64 `json:"gameId"`
|
|
Id int64 `json:"id"`
|
|
}
|
|
|
|
// UpdateGameOut 更新游戏出参
|
|
type UpdateGameOut struct {
|
|
Success bool `json:"success" dc:"是否成功"`
|
|
}
|
|
|
|
// DeleteGameIn 删除游戏入参
|
|
type DeleteGameIn struct {
|
|
Id int64 `json:"Id"`
|
|
}
|
|
|
|
// DeleteGameOut 删除游戏出参
|
|
type DeleteGameOut struct {
|
|
Success bool `json:"success" dc:"是否成功"`
|
|
}
|