go-common/app/job/main/figure-timer/model/db.go

30 lines
865 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package model
import "time"
// Figure user figure model
type Figure struct {
ID int64 `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 int64 `json:"-"`
Ctime time.Time `json:"-"`
Mtime time.Time `json:"-"`
}
// Rank rank fiigure
type Rank struct {
ID int64 `json:"-"`
ScoreFrom int32 `json:"score_from"`
ScoreTo int32 `json:"score_to"`
Percentage int8 `json:"percentage"`
Ver int64 `json:"ver"`
Ctime time.Time `json:"-"`
Mtime time.Time `json:"-"`
}