chore: api request
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
export const UserRoles = {
|
||||
ADMIN: 'admin',
|
||||
USER: 'user'
|
||||
};
|
||||
|
||||
export const UserRolesOptions = [
|
||||
{ label: '管理员', value: UserRoles.ADMIN },
|
||||
{ label: '普通用户', value: UserRoles.USER }
|
||||
];
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user