Documentation ¶
Index ¶
- Constants
- Variables
- func BindDevelopers(gid int32, items []string)
- func BindGenres(gid int32, items []string)
- func BindPublishers(gid int32, items []string)
- func Initialize() *gorm.DB
- type BaseGameModel
- type BaseModel
- type Developer
- type Game
- type GameDeveloper
- type GameGenre
- type GamePublisher
- type Genre
- type Price
- type Publisher
Constants ¶
View Source
const ( PARALLEL = 2 UA = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36" )
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
func BindDevelopers ¶
func BindGenres ¶
func BindPublishers ¶
func Initialize ¶
Types ¶
type BaseGameModel ¶
type Game ¶
type Game struct { ID int32 `gorm:"primaryKey;autoIncrement"` CnTitle string `gorm:"default:"` EnTitle string `gorm:"type:varchar(200);index:,default:"` Score float32 `gorm:"default:0.0"` MetacriticScore uint8 `gorm:"default:0"` ThumbImg string `gorm:"type:varchar(100);default:"` Slug string `gorm:"type:varchar(200);uniqueIndex"` Kind uint8 `gorm:"default:0"` Desc string Aliases string HasChinese bool ReleaseTime datatypes.Date }
func GetAllGames ¶
func GetAllGames() []Game
func (*Game) Developers ¶
func (*Game) Publishers ¶
type GameDeveloper ¶
type GameDeveloper struct {
BaseGameModel
}
type GameGenre ¶
type GameGenre struct {
BaseGameModel
}
type GamePublisher ¶
type GamePublisher struct {
BaseGameModel
}
Click to show internal directories.
Click to hide internal directories.