chore: api request

This commit is contained in:
jialin
2024-06-10 21:14:37 +08:00
parent 6a60561401
commit f491b5dfb1
24 changed files with 685 additions and 312 deletions
+9
View File
@@ -0,0 +1,9 @@
export const UserRoles = {
ADMIN: 'admin',
USER: 'user'
};
export const UserRolesOptions = [
{ label: '管理员', value: UserRoles.ADMIN },
{ label: '普通用户', value: UserRoles.USER }
];
+15
View File
@@ -0,0 +1,15 @@
export interface ListItem {
name: string;
is_admin: boolean;
full_name: string;
id: number;
created_at: string;
updated_at: string;
}
export interface FormData {
name: string;
is_admin: boolean;
full_name: string;
password: string;
}