feat: Introduce admin user management API with user listing, retrieval, account activation/deactivation, and case-insensitive role validation.
This commit is contained in:
parent
5c6c13c261
commit
a59b144ebf
6 changed files with 228 additions and 3 deletions
|
|
@ -6,7 +6,7 @@ import { ProfileUpdate, UserResponse } from "./user.types";
|
|||
export interface ListUsersResponse {
|
||||
code: number;
|
||||
message: string;
|
||||
data: UserResponse[];
|
||||
data: UserResponse[] | null;
|
||||
}
|
||||
|
||||
export interface GetUserResponse {
|
||||
|
|
@ -28,3 +28,22 @@ export interface UpdateRoleResponse {
|
|||
message: string;
|
||||
data: UserResponse;
|
||||
}
|
||||
|
||||
export interface DeactivateAccountResponse {
|
||||
code: number;
|
||||
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