You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
802 B
30 lines
802 B
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"` |
|
}
|
|
|