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; } interface DepartmentItem { id: number | string; name: string | React.JSX.Element; children?: DepartmentItem[]; [key: string]: any; } interface RoleItem { ID: number; app_id: number; code: string; name: string; lightIndex?: number; } type ApiMethod = { departmentList: () => Promise; userSearch: (input: string, key: number[]) => Promise; roleList: () => Promise; }; type ButtonConfig = { mobileButton: boolean; pcButton: boolean; onCancel: () => void; onOk: () => any; }; export { ApiMethod, ButtonConfig, DepartmentItem, RoleItem, User };