mirror of https://github.com/ghostfolio/ghostfolio
Browse Source
* Add endpoint to get user by id * Update changelog --------- Co-authored-by: Thomas Kaul <4159106+dtslvr@users.noreply.github.com>pull/5909/head^2
committed by
GitHub
7 changed files with 61 additions and 23 deletions
@ -0,0 +1,13 @@ |
|||
import { Role } from '@prisma/client'; |
|||
|
|||
export interface AdminUser { |
|||
accountCount: number; |
|||
activityCount: number; |
|||
country: string; |
|||
createdAt: Date; |
|||
dailyApiRequests: number; |
|||
engagement: number; |
|||
id: string; |
|||
lastActivity: Date; |
|||
role: Role; |
|||
} |
|||
@ -0,0 +1,3 @@ |
|||
import { AdminUser } from '../admin-user.interface'; |
|||
|
|||
export interface AdminUserResponse extends AdminUser {} |
|||
@ -1,16 +1,6 @@ |
|||
import { Role } from '@prisma/client'; |
|||
import { AdminUser } from '../admin-user.interface'; |
|||
|
|||
export interface AdminUsersResponse { |
|||
count: number; |
|||
users: { |
|||
accountCount: number; |
|||
activityCount: number; |
|||
country: string; |
|||
createdAt: Date; |
|||
dailyApiRequests: number; |
|||
engagement: number; |
|||
id: string; |
|||
lastActivity: Date; |
|||
role: Role; |
|||
}[]; |
|||
users: AdminUser[]; |
|||
} |
|||
|
|||
Loading…
Reference in new issue