From 53da1eee2a54da0cb82f67af93a8ce38f10fb2d2 Mon Sep 17 00:00:00 2001 From: Kharec Date: Sat, 10 Jan 2026 22:33:53 +0100 Subject: [PATCH] feat: add VoteResponseDTO and VoteListDTO --- internal/dto/vote.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/internal/dto/vote.go b/internal/dto/vote.go index bfd88a5..6581edc 100644 --- a/internal/dto/vote.go +++ b/internal/dto/vote.go @@ -41,3 +41,14 @@ func ToVoteDTOs(votes []database.Vote) []VoteDTO { } return dtos } + +type VoteResponseDTO struct { + HasVote bool `json:"has_vote"` + Vote *VoteDTO `json:"vote,omitempty"` + IsAnonymous bool `json:"is_anonymous"` +} + +type VoteListDTO struct { + Votes []VoteDTO `json:"votes"` + Count int `json:"count"` +}