Files
arenax-server/internal/model/game.go

65 lines
1.7 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package model
import "github.com/gogf/gf/v2/frame/g"
type Game struct {
g.Meta `orm:"table:games"`
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"` // 图标
Id int64 `json:"id" orm:"id"`
BoundType int64 `json:"boundType" orm:"bound_type"` // 绑定类型 1qq 2wx 3: all
}
// 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"`
BoundType int64 `json:"boundType"`
}
// 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"`
BoundType int64 `json:"boundType"`
}
// 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:"是否成功"`
}