import {
  AccessLogQueryParam,
  AccessLogPageResult
} from '@/types/api/system/accesslog';
import request from '@/utils/request';
import { AxiosPromise } from 'axios';

/**
 * "系统管理" => "系统日志"
 * @param data
 */
export function accessLog(data: AccessLogQueryParam): AxiosPromise<AccessLogPageResult> {
  return request({
    url: 'admin/system/access-log/page-query',
    method: 'get',
    params: data
  });
}
