feat: add SanitizedUserListDTO for sanitized user lists
This commit is contained in:
1 parent
ef4a05f8a5
commit
1727ae4a7c
1 file changed
+7
@@ -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