feat: Implement cuser management with role updates, activation, and deactivation.
This commit is contained in:
parent
a59b144ebf
commit
1caeac6226
5 changed files with 100 additions and 18 deletions
|
|
@ -8,14 +8,14 @@ export interface ListUsersResponse {
|
|||
message: string;
|
||||
data: UserResponse[] | null;
|
||||
}
|
||||
|
||||
|
||||
export interface GetUserResponse {
|
||||
code: number;
|
||||
message: string;
|
||||
data: UserResponse;
|
||||
}
|
||||
|
||||
export interface UpdateUser{
|
||||
export interface UpdateUser {
|
||||
id: number;
|
||||
username?: string;
|
||||
email?: string;
|
||||
|
|
@ -23,10 +23,14 @@ export interface UpdateUser{
|
|||
profile?: ProfileUpdate;
|
||||
}
|
||||
|
||||
export interface UpdateRole {
|
||||
id: number;
|
||||
role_id: number;
|
||||
}
|
||||
|
||||
export interface UpdateRoleResponse {
|
||||
code: number;
|
||||
message: string;
|
||||
data: UserResponse;
|
||||
}
|
||||
|
||||
export interface DeactivateAccountResponse {
|
||||
|
|
@ -34,16 +38,9 @@ export interface DeactivateAccountResponse {
|
|||
message: string;
|
||||
}
|
||||
|
||||
export interface ActivateAccount {
|
||||
id: number;
|
||||
}
|
||||
|
||||
export interface ActivateAccountResponse {
|
||||
code: number;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface DeactivateAccount{
|
||||
id: number;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue