初始化fateverse

This commit is contained in:
wenhua
2023-10-13 16:23:20 +08:00
commit 6f0949e432
47 changed files with 8371 additions and 0 deletions

15
src/api/cache.ts Normal file
View File

@@ -0,0 +1,15 @@
import request from "../utils/request";
export const getCacheOptApi = (cacheKey: string) => {
return request({
url: '/admin/dict/data/option/'+ cacheKey,
method: 'get'
})
}
export const getCacheTypeApi = (cacheKey: string) => {
return request({
url: '/admin/dict/data/type/'+ cacheKey,
method: 'get',
})
}

16
src/api/login.ts Normal file
View File

@@ -0,0 +1,16 @@
import request from "../utils/request";
export const getCaptchaApi = () => {
return request({
url: '/auth/captchaImage',
method: 'get'
})
}
export const loginApi = (data: object) => {
return request({
url: '/auth/login',
method: 'post',
data
})
}

8
src/api/router.ts Normal file
View File

@@ -0,0 +1,8 @@
import request from "../utils/request";
export const getRouterApi = () => {
return request({
url: '/auth/router',
method: 'get'
})
}