model

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
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 // 放弃投票

	// JuryInvalid
	JuryBlocked = 1
	JuryExpire  = 2
	JuryAdmin   = 3
)

case status

Variables

This section is empty.

Functions

This section is empty.

Types

type Case

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"`
}

Case is jury case info.

type Kpi

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:"-"`
}

Kpi is jury kpi info.

type KpiData

type KpiData struct {
	KpiPoint
	VoteRealTotal int64 `json:"vote_real_total"`
}

KpiData is jury kpi data info.

type KpiPoint

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"`
}

KpiPoint is jury kpi point info.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL