import httpClient from '@/utils/http';

import { ControllerResponse } from './data-contracts';
export default {
  /**
   * @description 测试Errorf方法是否能正常记录错误日志到文件
   */
  errorfList: (query: {
    /**
     * 测试类型: error, info, both
     * @default ""both""
     */
    test_type?: string;
  }) => {
    return httpClient.get<
      ControllerResponse & {
        data?: string;
      }
    >(`/test/errorf`, { query: query });
  }
};
