31 lines
695 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
2022-11-29 22:26:50 +08:00
userId: number
2022-11-13 14:49:59 +08:00
userType: number
username: string
status: number
userIp: string
userAgent: string
2022-11-29 22:26:50 +08:00
createTime: Date
2022-11-13 14:49:59 +08:00
}
export interface LoginLogReqVO extends PageParam {
2022-11-13 15:13:38 +08:00
userIp?: string
username?: string
status?: boolean
2022-11-29 22:26:50 +08:00
createTime?: Date[]
2022-11-13 15:13:38 +08:00
}
2022-07-18 19:06:37 +08:00
// 查询登录日志列表
2022-11-13 15:13:38 +08:00
export const getLoginLogPageApi = (params: LoginLogReqVO) => {
2022-07-19 22:33:54 +08:00
return request.get({ url: '/system/login-log/page', params })
2022-07-18 19:06:37 +08:00
}
// 导出登录日志
2022-11-13 15:13:38 +08:00
export const exportLoginLogApi = (params: LoginLogReqVO) => {
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
}