Enhance user filtering

New response structure
Use query-builder
Refactor user service & repo
This commit is contained in:
Denis Arh
2019-06-26 17:45:26 +02:00
parent 4433ef2c37
commit 70cac41579
16 changed files with 364 additions and 108 deletions
+6
View File
@@ -750,6 +750,12 @@ An organisation may have many roles. Roles may have many channels available. Acc
| query | string | GET | Search query to match against users | N/A | NO |
| username | string | GET | Search username to match against users | N/A | NO |
| email | string | GET | Search email to match against users | N/A | NO |
| kind | types.UserKind | GET | Kind (normal, bot) | N/A | NO |
| incDeleted | bool | GET | Include deleted users (requires 'access' permission) | N/A | NO |
| incSuspended | bool | GET | Include suspended users (requires 'access' permission) | N/A | NO |
| sort | string | GET | Sort by (createdAt, updatedAt, deletedAt, suspendedAt, email, username, userID) | N/A | NO |
| page | uint | GET | Page number (0 based) | N/A | NO |
| perPage | uint | GET | Returned items per page | N/A | NO |
## Create user