2019-04-22 02:59:20 +00:00

31 lines
802 B
Go

package model
import "time"
// Figure user figure model
type Figure struct {
ID int32 `json:"-"`
Mid int64 `json:"mid"`
Score int32 `json:"score"`
LawfulScore int32 `json:"lawful_score"`
WideScore int32 `json:"wide_score"`
FriendlyScore int32 `json:"friendly_score"`
BountyScore int32 `json:"bounty_score"`
CreativityScore int32 `json:"creativity_score"`
Ver int32 `json:"ver"`
Ctime time.Time `json:"-"`
Mtime time.Time `json:"-"`
}
type FigureWithRank struct {
*Figure
Percentage int8 `json:"percentage"`
}
// Rank user rank model
type Rank struct {
ScoreFrom int32 `json:"score_from"`
ScoreTo int32 `json:"score_to"`
Percentage int8 `json:"percentage"`
}