wujianwei
2025-09-09 deb890911f16f28d0caf0edd7b96e8082bdd306d
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
45
46
47
import request, {download, requestType} from '@/utils/request'
import {BaseEntityInterface} from "@/utils/globalInterface";
 
export interface LogininforI extends BaseEntityInterface {
    infoId?: number,
    userName?: string,
    ipaddr?: string,
    loginLocation?: string,
    browser?: string,
    os?: string,
    status?: string,
    msg?: string,
    loginTime?: string
}
 
export const listLogininfor: requestType = (query) => {
    return request({
        url: '/monitor/logininfor/list',
        method: 'get',
        params: query
    })
}
 
 
// 删除登录日志
export const delLogininfor: requestType = (infoId) => {
    return request({
        url: '/monitor/logininfor/' + infoId,
        method: 'delete'
    })
}
 
// 清空登录日志
export const cleanLogininfor: requestType = () => {
    return request({
        url: '/monitor/logininfor/clean',
        method: 'delete'
    })
}
/**
 * 导出
 */
export const exportLogininfor:requestType = (query) => {
    return new Promise<any>(()=>{
        download('/monitor/logininfor/export',query);
    })
}