Documentation ¶
Index ¶
Constants ¶
View Source
const ( // TotalScore of up rating TotalScore = 600 // LowerBoundScore ... LowerBoundScore = 240 )
Variables ¶
View Source
var Prizes = []PrizeLevel{ PrizeLevelOne, PrizeLevelTwo, PrizeLevelThree, PrizeLevelFour, PrizeLevelFive, }
Prizes list prize levels by priority
View Source
var Ranks = []RankLevel{ RankLevelSuper, RankLevelStrong, RankLevelStandout, RankLevelNormal, RankLevelNone, }
Ranks list all levels of rank
Functions ¶
This section is empty.
Types ¶
type Prize ¶
type Prize struct { Level PrizeLevel `json:"level"` Desc string `json:"desc"` Content string `json:"content"` }
Prize of rating
type PrizeLevel ¶
type PrizeLevel int8
PrizeLevel of prize
const ( PrizeLevelOne PrizeLevel = 10 * (1 + iota) PrizeLevelTwo PrizeLevelThree PrizeLevelFour PrizeLevelFive )
Prize Level List
type RankLevel ¶
type RankLevel int8
RankLevel of rank
type Rating ¶
type Rating struct { Score *Score `json:"score"` Rank *Rank `json:"rank"` Prize *Prize `json:"prize"` Privileges []*Privilege `json:"privileges"` }
Rating of up
type Score ¶
type Score struct { MID int64 `json:"mid"` Magnetic int `json:"magnetic"` // 电磁力 Creative int `json:"creative"` // 创作力 Influence int `json:"influence"` // 影响力 Credit int `json:"credit"` // 信用分 CDate time.Time `json:"c_date"` // 统计月 StatStart time.Time `json:"stat_start"` // 统计周期开始日 StatEnd time.Time `json:"stat_end"` // 统计周期结束日 }
Score of rating
Click to show internal directories.
Click to hide internal directories.