This commit is contained in:
2023-09-03 16:05:52 +08:00
commit c4211ddf7c
28 changed files with 1740 additions and 0 deletions

31
src/vite-env.d.ts vendored Normal file
View File

@@ -0,0 +1,31 @@
/// <reference types="vite/client" />
type Captcha = {
value: string
base64Src: string
}
type RouteHandle = {
auth: boolean
}
type _Response<T> = {
code: number
msg: string
data: T | null
}
type Token = {
token: string
}
type User = {
id: number
username: string
enable: number
}
type LoginForm = {
username: string
password: string
}