ShiShiYiBan/yudao-ui-admin-vue3/src/api/system/loginLog/index.ts

23 lines
517 B
TypeScript
Raw Normal View History

2022-11-03 16:55:01 +08:00
import request from '@/config/axios'
2022-07-18 19:06:37 +08:00
2022-11-13 14:49:59 +08:00
export interface LoginLogVO {
id: number
logType: number
traceId: number
userType: number
username: string
status: number
userIp: string
userAgent: string
createTime: string
}
2022-07-18 19:06:37 +08:00
// 查询登录日志列表
2022-07-19 22:33:54 +08:00
export const getLoginLogPageApi = (params) => {
return request.get({ url: '/system/login-log/page', params })
2022-07-18 19:06:37 +08:00
}
// 导出登录日志
export const exportLoginLogApi = (params) => {
2022-07-25 21:03:14 +08:00
return request.download({ url: '/system/login-log/export', params })
2022-07-18 19:06:37 +08:00
}