From 1727ae4a7c94767d4def37010cd4ac36f8d7e8b6 Mon Sep 17 00:00:00 2001 From: Kharec Date: Sat, 10 Jan 2026 22:36:02 +0100 Subject: [PATCH] feat: add SanitizedUserListDTO for sanitized user lists --- internal/dto/user.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/dto/user.go b/internal/dto/user.go index a786a26..3d25350 100644 --- a/internal/dto/user.go +++ b/internal/dto/user.go @@ -75,6 +75,13 @@ func ToSanitizedUserDTOs(users []database.User) []SanitizedUserDTO { return dtos } +type SanitizedUserListDTO struct { + Users []SanitizedUserDTO `json:"users"` + Count int `json:"count"` + Limit int `json:"limit"` + Offset int `json:"offset"` +} + type RegistrationResponseDTO struct { User UserDTO `json:"user"` VerificationSent bool `json:"verification_sent"`