import { useMessage } from "/@/hooks/web/useMessage";
import { defHttp } from '/@/utils/http/axios';

const { createConfirm } = useMessage();

enum Api {
  projectStatisticChart = '/rectify.chart/stRectifyChart/projectStatisticChart',
  problemDepList = '/rectify.chart/stRectifyChart/problemDepList',
  problemDepStatisticChart = '/rectify.chart/stRectifyChart/problemDepStatisticChart',
  yearStatisticChart = '/rectify.chart/stRectifyChart/yearStatisticChart',
  domainStatisticChart = '/rectify.chart/stRectifyChart/domainStatisticChart',
}
/**
 * 项目整改完成统计
 * @param params
 */
export const projectStatisticChart = (params) =>
  defHttp.get({url: Api.projectStatisticChart, params});

/**
 * 获取部门列表
 * @param params
 */
export const problemDepList = (params) =>
  defHttp.get({url: Api.problemDepList, params});

/**
 * 部门整改完成统计
 * @param params
 */
export const problemDepStatisticChart = (params) =>
  defHttp.get({url: Api.problemDepStatisticChart, params});

/**
 * 领域整改完成统计
 * @param params
 */
export const domainStatisticChart = (params) =>
  defHttp.get({url: Api.domainStatisticChart, params});


  /**
 * 年度整改完成统计
 * @param params
 */
export const yearStatisticChart = (params) =>
defHttp.get({url: Api.yearStatisticChart, params});