index.ts 630 B

1234567891011121314151617181920212223242526
  1. import request from '@/config/axios'
  2. export interface ApiAccessLogVO {
  3. id: number
  4. traceId: string
  5. userId: string
  6. userType: string
  7. applicationName: string
  8. requestMethod: string
  9. requestParams: string
  10. requestUrl: string
  11. beginTime: string
  12. endTIme: string
  13. duration: string
  14. resultCode: number
  15. }
  16. // 查询列表API 访问日志
  17. export const getApiAccessLogPageApi = (params) => {
  18. return request.get({ url: '/infra/api-access-log/page', params })
  19. }
  20. // 导出API 访问日志
  21. export const exportApiAccessLogApi = (params) => {
  22. return request.download({ url: '/infra/api-access-log/export-excel', params })
  23. }