model

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GqaPluginVoteCandidate

type GqaPluginVoteCandidate struct {
	Id              uint           `json:"id" gorm:"comment:id;autoIncrement;index"`
	Candidate       string         `json:"candidate" gorm:"primaryKey;comment:候选人;index;not null"`
	CandidateByUser system.SysUser `json:"candidateByUser" gorm:"foreignKey:Candidate;references:Username"`
	VoteType        string         `json:"voteType" gorm:"primaryKey;comment:投票类型;index"`
	CreatedBy       string         `json:"createdBy" gorm:"comment:创建人"`
}

type GqaPluginVoteScoreResult

type GqaPluginVoteScoreResult struct {
	Id              uint           `json:"id" gorm:"comment:id;autoIncrement;index"`
	Candidate       string         `json:"candidate" gorm:"primaryKey;comment:候选人;not null;index"`
	CandidateByUser system.SysUser `json:"candidateByUser" gorm:"foreignKey:Candidate;references:Username"`
	VoteType        string         `json:"voteType" gorm:"primaryKey;comment:投票类型;type:varchar(10)"`
	VoteTypeDetail  string         `json:"voteTypeDetail" gorm:"primaryKey;comment:投票细类;type:varchar(20)"`
	VoteScore       float64        `json:"voteScore" gorm:"comment:得分"`
	VoteRatio       string         `json:"voteRatio" gorm:"comment:投票权重;not null"`
	Ratio           uint8          `json:"ratio" gorm:"comment:权重值;not null"`
	VoteFrom        string         `json:"voteFrom" gorm:"primaryKey;comment:投票人;type:varchar(15)"`
	VoteFromByUser  system.SysUser `json:"voteFromByUser" gorm:"foreignKey:VoteFrom;references:Username"`
	VoteMonth       string         `json:"voteMonth" gorm:"primaryKey;comment:投票时段;index;type:varchar(10)"`
	CreatedAt       time.Time      `json:"createdAt"`
}

type GqaPluginVoteVoter

type GqaPluginVoteVoter struct {
	Id          uint           `json:"id" gorm:"comment:id;autoIncrement;index"`
	Voter       string         `json:"voter" gorm:"primaryKey;comment:固定投票人;not null;index"`
	VoterByUser system.SysUser `json:"voterByUser" gorm:"foreignKey:Voter;references:Username"`
	VoteType    string         `json:"voteType" gorm:"primaryKey;comment:投票类型;index"`
	VoteRatio   string         `json:"voteRatio" gorm:"primaryKey;comment:投票权重"`
	CreatedBy   string         `json:"createdBy" gorm:"comment:创建人"`
}

type GqaPluginVoteVoterRandom

type GqaPluginVoteVoterRandom struct {
	Id            uint           `json:"id" gorm:"comment:id;autoIncrement;index"`
	Voter         string         `json:"voter" gorm:"primaryKey;comment:随机加固定投票人;not null;index"`
	VoterByUser   system.SysUser `json:"voterByUser" gorm:"foreignKey:Voter;references:Username"`
	VoteType      string         `json:"voteType" gorm:"primaryKey;comment:投票类型;index"`
	VoteVersion   uuid.UUID      `json:"voteVersion" gorm:"primaryKey;comment:投票版本"`
	Memo          string         `json:"memo" gorm:"comment:投票说明"`
	CreatedAt     time.Time      `json:"createdAt"`
	CreatedBy     string         `json:"createdBy" gorm:"comment:创建人"`
	CreatedByUser system.SysUser `json:"createdByUser" gorm:"foreignKey:CreatedBy;references:Username"`
}

type RequestAddCandidate

type RequestAddCandidate struct {
	Candidate []string `json:"candidate"`
	VoteType  string   `json:"voteType"`
}

type RequestAddScore

type RequestAddScore struct {
	RequestAddScoreDetail []RequestAddScoreDetail `json:"requestAddScoreDetail"`
}

type RequestAddScoreDetail

type RequestAddScoreDetail struct {
	Candidate      string  `json:"candidate"`
	VoteType       string  `json:"voteType"`
	VoteTypeDetail string  `json:"voteTypeDetail"`
	VoteScore      float64 `json:"voteScore"`
}

type RequestAddVoter

type RequestAddVoter struct {
	Voter     []string `json:"voter"`
	VoteType  string   `json:"voteType"`
	VoteRatio string   `json:"voteRatio"`
}

type RequestAddVoterRandom

type RequestAddVoterRandom struct {
	Voter    []string `json:"voter"`
	VoteType string   `json:"voteType"`
	Memo     string   `json:"memo"`
}

type RequestCandidateList

type RequestCandidateList struct {
	global.RequestPageAndSort
	//可扩充的模糊搜索项,参考上面 RequestAddCandidate 中的字段
	Candidate string `json:"candidate"`
	VoteType  string `json:"voteType"`
}

type RequestGetVoterRandom

type RequestGetVoterRandom struct {
	RandomNumber uint   `json:"randomNumber"`
	VoteType     string `json:"voteType"`
}

type RequestScoreResultList

type RequestScoreResultList struct {
	global.RequestPageAndSort
	VoteType  string `json:"voteType"`
	VoteMonth string `json:"voteMonth"`
}

type RequestScoreResultVoted added in v0.0.4

type RequestScoreResultVoted struct {
	VoteType  string `json:"voteType"`
	VoteMonth string `json:"voteMonth"`
}

type RequestVoterList

type RequestVoterList struct {
	global.RequestPageAndSort
	//可扩充的模糊搜索项,参考上面 RequestAddVoter 中的字段
	Voter     string `json:"voter"`
	VoteType  string `json:"voteType"`
	VoteRatio string `json:"voteRatio"`
}

type RequestVoterRandomList

type RequestVoterRandomList struct {
	global.RequestPageAndSort
	//可扩充的模糊搜索项,参考上面 RequestAddVoterRandom 中的字段
	Voter       string    `json:"voter"`
	VoteType    string    `json:"voteType"`
	VoteVersion uuid.UUID `json:"voteVersion"`
}

Jump to

Keyboard shortcuts

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