import { download, post } from '@/api/request';

const env = import.meta.env;
const PREFIX = env.VITE_API_PREFIX_TASK;

/**
 *导出指标文件
 * @param params
 * @returns
 */
export const exportPerformanceApi = (params: any, fileName: any) => {
  return download(`${PREFIX}taskPerformance/exportPerformance`, params, fileName);
};

/**
 * 编辑指标
 * @param params
 * @returns
 */
export const editPerformanceApi = (params: any) => {
  return post(`${PREFIX}taskPerformance/editPerformance`, params);
};
