index.ts 413 B

1234567891011
  1. import { defHttp } from '@/config/axios'
  2. import type { LoginLogVO } from './types'
  3. // 查询登录日志列表
  4. export const getLoginLogPageApi = ({ params }) => {
  5. return defHttp.get<PageResult<LoginLogVO>>({ url: '/system/login-log/page', params })
  6. }
  7. // 导出登录日志
  8. export const exportLoginLogApi = (params) => {
  9. return defHttp.get({ url: '/system/login-log/export', params, responseType: 'blob' })
  10. }