123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- package model
- import "time"
- const (
- CaseStatusGranting = 1
- CaseStatusGrantStop = 2
- CaseStatusDealing = 3
- CaseStatusDealed = 4
- CaseStatusRestart = 5
- CaseStatusUndealed = 6
- JudgeTypeUndeal = 0
- JudgeTypeViolate = 1
- JudgeTypeLegal = 2
- VoteTypeUndo = 0
- VoteTypeViolate = 1
- VoteTypeDelete = 4
- VoteTypeLegal = 2
- VoteTypeGiveUp = 3
-
- JuryBlocked = 1
- JuryExpire = 2
- JuryAdmin = 3
- )
- type Case struct {
- ID int64 `json:"id"`
- Mid int64 `json:"mid"`
- Agree int64 `json:"agree"`
- Against int64 `json:"against"`
- AdminAgree int64 `json:"ad_agree"`
- AdminAgainst int64 `json:"ad_against"`
- PunishStatus int8 `json:"pubish_status"`
- PunishResult int8 `json:"pubish_result"`
- BlockDays int64 `json:"block_days"`
- }
- type Kpi struct {
- ID int64 `json:"id"`
- Mid int64 `json:"mid"`
- Point int64 `json:"point"`
- Day time.Time `json:"day"`
- Rate int64 `json:"rate"`
- Rank int64 `json:"rank"`
- RankPer int64 `json:"rank_per"`
- RankTotal int64 `json:"rankTotal"`
- Expired time.Time `json:"expired"`
- PreCount int64 `json:"-"`
- }
- type KpiPoint struct {
- ID int64 `json:"id"`
- Mid int64 `json:"mid"`
- Day time.Time `json:"day"`
- Point int64 `json:"point"`
- ActiveDays int64 `json:"activeDays"`
- VoteTotal int64 `json:"voteTotal"`
- VoteRadio int64 `json:"voteRadio"`
- BlockedTotal int64 `json:"blockedTotal"`
- Expired time.Time `json:"expired"`
- OpinionNum int64 `json:"opinion_num"`
- OpinionLikes int64 `json:"opinion_likes"`
- OpinionHates int64 `json:"opinion_hates"`
- }
- type KpiData struct {
- KpiPoint
- VoteRealTotal int64 `json:"vote_real_total"`
- }
|