///
export interface User {
user_id: number;
avatar: string;
name?: string;
depart_id?: string;
depart_full_name: string;
username: string;
real_name: string;
id?: number;
title?: string;
disabled?: boolean;
depart_name?: string;
is_forbidden?: string;
nick?: string;
type?: string;
user_type?: string;
choiseParent?: string | number;
}
export interface DepartmentItem {
id: number | string;
name: string | React.JSX.Element;
children?: DepartmentItem[];
[key: string]: any;
}
export interface RoleItem {
ID: number;
app_id: number;
code: string;
name: string;
lightIndex?: number;
}
export type ApiMethod = {
departmentList: () => Promise;
userSearch: (input: string, key: number[]) => Promise;
roleList: () => Promise;
};
export type ButtonConfig = {
mobileButton: boolean;
pcButton: boolean;
onCancel: () => void;
onOk: () => any;
};