order page and user page update

This commit is contained in:
Samandar Turgunboyev
2025-12-26 17:17:45 +05:00
parent 768ba9585d
commit 388c8bcfd1
9 changed files with 209 additions and 108 deletions

View File

@@ -1,10 +1,13 @@
export interface UserData {
id: string;
id: 3;
username: string;
last_login: null | string;
date_joined: string;
is_superuser: boolean;
role: "admin" | "user" | "moderator";
first_name: string;
last_name: string;
middle_name: null | string;
gender: "M" | "F" | null;
region: null | string;
address: null | string;
created_at: string;
}
export interface UserListRes {
@@ -18,7 +21,13 @@ export interface UserListRes {
}
export interface UserCreateReq {
id: 3;
username: string;
password: string;
is_superuser: boolean;
first_name: string;
last_name: string;
middle_name: null | string;
gender: "M" | "F" | null;
region: null | string;
address: null | string;
created_at: string;
}