api ulangan
This commit is contained in:
24
src/features/users/lib/data.ts
Normal file
24
src/features/users/lib/data.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
export interface UserData {
|
||||
id: string;
|
||||
username: string;
|
||||
last_login: null | string;
|
||||
date_joined: string;
|
||||
is_superuser: boolean;
|
||||
role: "admin" | "user" | "moderator";
|
||||
}
|
||||
|
||||
export interface UserListRes {
|
||||
total: number;
|
||||
page: number;
|
||||
page_size: 20;
|
||||
total_pages: number;
|
||||
has_next: boolean;
|
||||
has_previous: boolean;
|
||||
results: UserData[];
|
||||
}
|
||||
|
||||
export interface UserCreateReq {
|
||||
username: string;
|
||||
password: string;
|
||||
is_superuser: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user