add: getAllUsers

This commit is contained in:
Alex
2024-10-13 13:42:39 +02:00
parent 58daf7bf30
commit 7ed986d122
3 changed files with 56 additions and 36 deletions

View File

@@ -115,6 +115,9 @@ func (service *UserService) GetUserByEmail(email string) (*models.User, error) {
}
func (service *UserService) GetUsers(where map[string]interface{}) (*[]models.User, error) {
if where == nil {
where = map[string]interface{}{}
}
return service.Repo.GetUsers(where)
}