api.ts
945 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import request from '@/utils/request'
// 获取验证码
export const getCode = (data: any) =>
request({
url: '/authority/anno/captcha' + `?key=${data}`,
method: 'get',
responseType: 'arraybuffer',
data
})
// 获取验证码验证
export const verifyCode = (data: any) =>
request({
url:
'/authority/anno/check' +
`?code=${data.key}` +
'&' +
`key=${data.code}`,
method: 'get',
data
})
// 登录
export const login = (data: any) =>
request({
url: '/authority/anno/login',
method: 'post',
data
})
// 修改密码
export const alterPassword = (data: any) =>
request({
url: '/authority/user/password',
method: 'put',
data
})
export const loginInfo = (data: any) =>
request({
url: 'authority/loginLog/anno/login/' +
`${data.name}?` +
'&' +
`description=${data.description}`,
method: 'get',
data
})