Able to get own poll answer & poll answer percentage

This commit is contained in:
2025-02-13 21:56:54 +08:00
parent 429ca64f9d
commit e16201a3ad
4 changed files with 28 additions and 4 deletions

View File

@ -18,8 +18,9 @@ type Poll struct {
}
type PollMetric struct {
TotalAnswer int64 `json:"total_answer"`
ByOptions map[string]int64 `json:"by_options"`
TotalAnswer int64 `json:"total_answer"`
ByOptions map[string]int64 `json:"by_options"`
ByOptionsPercentage map[string]float64 `json:"by_options_percentage"`
}
type PollOption struct {