2024-02-19 13:44:32 +08:00
|
|
|
interface Window {
|
|
|
|
|
XEUtils: Record<string, any>
|
|
|
|
|
existLoading: boolean
|
|
|
|
|
lazy: number
|
|
|
|
|
unique: number
|
|
|
|
|
tokenRefreshing: boolean
|
|
|
|
|
requests: Function[]
|
|
|
|
|
eventSource: EventSource
|
|
|
|
|
loadLangHandle: Record<string, any>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface anyObj {
|
|
|
|
|
[key: string]: any
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface treeData {
|
|
|
|
|
id?: string
|
|
|
|
|
value?: string
|
|
|
|
|
name?: string
|
|
|
|
|
label?: string
|
|
|
|
|
children: treeData[]
|
|
|
|
|
[key: string]: any
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface TableDefaultData<T = any> {
|
|
|
|
|
list: T
|
|
|
|
|
remark: string
|
|
|
|
|
total: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface ApiResponse<T = any> {
|
2024-09-13 20:04:19 +08:00
|
|
|
code: number | string
|
2024-02-19 13:44:32 +08:00
|
|
|
data: T
|
|
|
|
|
msg: string
|
|
|
|
|
time: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ApiPromise<T = any> = Promise<ApiResponse<T>>
|