Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GlobalConfig ¶
type LifeTimeStats ¶
type LifeTimeStats struct {
ID uint `json:"id" gorm:"primary_key"`
UpdatedAt time.Time
AccountId string
GameModeStats string `gorm:"type:blob"`
MatchesSolo string `gorm:"type:blob"`
MatchesSoloFPP string `gorm:"type:blob"`
MatchesDuo string `gorm:"type:blob"`
MatchesDuoFPP string `gorm:"type:blob"`
MatchesSquad string `gorm:"type:blob"`
MatchesSquadFPP string `gorm:"type:blob"`
}
func (*LifeTimeStats) GetInfoByAccountId ¶
func (*LifeTimeStats) GetInfoByUserName ¶
func (*LifeTimeStats) ParseFromPUBG ¶
func (m *LifeTimeStats) ParseFromPUBG(data schema.LifeTimeStats)
type Match ¶
type Match struct {
BaseModel
MatchId string `gorm:"not null;unique_index"`
Duration int
MatchType string // arcade, custom, event, official, training
MapName string // Baltic_Main, Desert_Main, DihorOtok_Main, Erangel_Main, Range_Main, Savage_Main, Summerland_Main
IsCustomMatch bool
SeasonState string // closed, prepare, progress
MatchCreatedAt time.Time
Roster string `gorm:"type:blob"`
Assets string `gorm:"type:blob"`
}
func (*Match) GetMatchInfo ¶
获取比赛详情 并进行数据库缓存
func (*Match) ParseFromPUBG ¶
type Player ¶
type Player struct {
BaseModel
AccountId string `gorm:"not null;unique_index:index_account"`
Name string `gorm:"not null;unique_index:index_account"`
ShardId string
AccountCreatedAt time.Time
AccountUpdatedAt time.Time
}
func (*Player) GetInfoByUserName ¶
根据用户名获取用户信息 优先从数据库中获取
func (*Player) ParseFromPUBG ¶
Click to show internal directories.
Click to hide internal directories.