Incomplete implementation of createVotes
This commit is contained in:
@ -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"`
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user