a
This commit is contained in:
parent
ebdf63421a
commit
fc76f086c7
1 changed files with 30 additions and 0 deletions
30
Backend/src/types/usersmanagement.types.ts
Normal file
30
Backend/src/types/usersmanagement.types.ts
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import { ProfileUpdate, UserResponse } from "./user.types";
|
||||
|
||||
/**
|
||||
* User management types
|
||||
*/
|
||||
export interface ListUsersResponse {
|
||||
code: number;
|
||||
message: string;
|
||||
data: UserResponse[];
|
||||
}
|
||||
|
||||
export interface GetUserResponse {
|
||||
code: number;
|
||||
message: string;
|
||||
data: UserResponse;
|
||||
}
|
||||
|
||||
export interface UpdateUser{
|
||||
id: number;
|
||||
username?: string;
|
||||
email?: string;
|
||||
role?: string;
|
||||
profile?: ProfileUpdate;
|
||||
}
|
||||
|
||||
export interface UpdateRoleResponse {
|
||||
code: number;
|
||||
message: string;
|
||||
data: UserResponse;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue