index.ts 682 B

1234567891011121314151617181920212223242526272829
  1. import request from '@/config/axios'
  2. export interface LoginLogVO {
  3. id: number
  4. logType: number
  5. traceId: number
  6. userType: number
  7. username: string
  8. status: number
  9. userIp: string
  10. userAgent: string
  11. createTime: string
  12. }
  13. export interface LoginLogReqVO extends PageParam {
  14. userIp?: string
  15. username?: string
  16. status?: boolean
  17. createTime?: string[]
  18. }
  19. // 查询登录日志列表
  20. export const getLoginLogPageApi = (params: LoginLogReqVO) => {
  21. return request.get({ url: '/system/login-log/page', params })
  22. }
  23. // 导出登录日志
  24. export const exportLoginLogApi = (params: LoginLogReqVO) => {
  25. return request.download({ url: '/system/login-log/export', params })
  26. }