Incomplete implementation of createVotes

This commit is contained in:
2025-01-02 19:24:32 +01:00
parent 9efe9a3537
commit 0229f78976
9 changed files with 136 additions and 13 deletions

View File

@ -30,11 +30,13 @@ type CreateElectionResponse struct {
// CreateVotesRequest defines model for CreateVotesRequest.
type CreateVotesRequest struct {
Choices *[]struct {
ChoiceText *string `json:"choiceText,omitempty"`
Tokens *int `json:"tokens,omitempty"`
} `json:"choices,omitempty"`
ElectionId *int `json:"electionId,omitempty"`
Choices []struct {
ChoiceText string `json:"choiceText"`
Tokens int `json:"tokens"`
} `json:"choices"`
ElectionId int `json:"electionId"`
// VoterIdentity Must be filled if election has known voters
VoterIdentity *string `json:"voterIdentity,omitempty"`
}