Documentation
¶
Index ¶
- type GqaPluginVoteCandidate
- type GqaPluginVoteScoreResult
- type GqaPluginVoteVoter
- type GqaPluginVoteVoterRandom
- type RequestAddCandidate
- type RequestAddScore
- type RequestAddScoreDetail
- type RequestAddVoter
- type RequestAddVoterRandom
- type RequestCandidateList
- type RequestGetVoterRandom
- type RequestScoreResultList
- type RequestScoreResultVoted
- type RequestVoterList
- type RequestVoterRandomList
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 RequestAddScore ¶
type RequestAddScore struct {
RequestAddScoreDetail []RequestAddScoreDetail `json:"requestAddScoreDetail"`
}
type RequestAddScoreDetail ¶
type RequestAddVoter ¶
type RequestAddVoterRandom ¶
type RequestCandidateList ¶
type RequestCandidateList struct { global.RequestPageAndSort //可扩充的模糊搜索项,参考上面 RequestAddCandidate 中的字段 Candidate string `json:"candidate"` VoteType string `json:"voteType"` }
type RequestGetVoterRandom ¶
type RequestScoreResultList ¶
type RequestScoreResultList struct { global.RequestPageAndSort VoteType string `json:"voteType"` VoteMonth string `json:"voteMonth"` }
type RequestScoreResultVoted ¶ added in v0.0.4
type RequestVoterList ¶
type RequestVoterList struct { global.RequestPageAndSort //可扩充的模糊搜索项,参考上面 RequestAddVoter 中的字段 Voter string `json:"voter"` VoteType string `json:"voteType"` VoteRatio string `json:"voteRatio"` }
type RequestVoterRandomList ¶
Click to show internal directories.
Click to hide internal directories.