2023-12-21 16:42:39 +08:00
|
|
|
interface Window {
|
2023-12-27 16:36:10 +08:00
|
|
|
XEUtils: Record<string, any>
|
2023-12-21 16:42:39 +08:00
|
|
|
existLoading: boolean
|
|
|
|
|
lazy: number
|
|
|
|
|
unique: number
|
|
|
|
|
tokenRefreshing: boolean
|
|
|
|
|
requests: Function[]
|
|
|
|
|
eventSource: EventSource
|
|
|
|
|
loadLangHandle: Record<string, any>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface anyObj {
|
|
|
|
|
[key: string]: any
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface TableDefaultData<T = any> {
|
|
|
|
|
list: T
|
|
|
|
|
remark: string
|
|
|
|
|
total: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface ApiResponse<T = any> {
|
|
|
|
|
code: number
|
|
|
|
|
data: T
|
|
|
|
|
msg: string
|
|
|
|
|
time: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ApiPromise<T = any> = Promise<ApiResponse<T>>
|