初始化fateverse
This commit is contained in:
15
src/api/cache.ts
Normal file
15
src/api/cache.ts
Normal 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
16
src/api/login.ts
Normal 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
8
src/api/router.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import request from "../utils/request";
|
||||
|
||||
export const getRouterApi = () => {
|
||||
return request({
|
||||
url: '/auth/router',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user