govote/voting/result.go

13 lines
297 B
Go
Raw Normal View History

2024-05-12 22:47:24 +00:00
package voting
import "code.c-base.org/baccenfutter/govote/voting/vote"
2024-05-14 08:26:48 +00:00
// Result is a data-container for the results of a voting.
// It can easily be accessed in templates.
2024-05-12 22:47:24 +00:00
type Result struct {
2024-05-13 08:45:38 +00:00
Quorum bool
Threshold bool
Yes, No, Abstain int
Votes []vote.Vote
2024-05-12 22:47:24 +00:00
}