提交 | 用户 | 时间
|
e57a89
|
1 |
import request from '@/utils/request' |
懒 |
2 |
|
|
3 |
// 查询登录日志列表 |
|
4 |
export function list(query) { |
|
5 |
return request({ |
|
6 |
url: '/monitor/logininfor/list', |
|
7 |
method: 'get', |
|
8 |
params: query |
|
9 |
}) |
|
10 |
} |
|
11 |
|
|
12 |
// 删除登录日志 |
|
13 |
export function delLogininfor(infoId) { |
|
14 |
return request({ |
|
15 |
url: '/monitor/logininfor/' + infoId, |
|
16 |
method: 'delete' |
|
17 |
}) |
|
18 |
} |
|
19 |
|
|
20 |
// 解锁用户登录状态 |
|
21 |
export function unlockLogininfor(userName) { |
|
22 |
return request({ |
|
23 |
url: '/monitor/logininfor/unlock/' + userName, |
|
24 |
method: 'get' |
|
25 |
}) |
|
26 |
} |
|
27 |
|
|
28 |
// 清空登录日志 |
|
29 |
export function cleanLogininfor() { |
|
30 |
return request({ |
|
31 |
url: '/monitor/logininfor/clean', |
|
32 |
method: 'delete' |
|
33 |
}) |
|
34 |
} |