feat: add SanitizedUserListDTO for sanitized user lists
This commit is contained in:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user