first commit

This commit is contained in:
仲么了
2023-12-21 16:42:39 +08:00
commit 0f7b59f55b
79 changed files with 7638 additions and 0 deletions

28
types/global.d.ts vendored Normal file
View File

@@ -0,0 +1,28 @@
interface Window {
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>>