feat: add VoteRequest with its validation types

This commit is contained in:
2025-11-23 13:46:51 +01:00
parent 0e71b28615
commit 8b5cc8e939

View File

@@ -6,6 +6,10 @@ import (
"goyco/internal/database"
)
type VoteRequest struct {
Type string `json:"type" validate:"required,oneof=up down none"`
}
type VoteDTO struct {
ID uint `json:"id"`
UserID *uint `json:"user_id,omitempty"`