import { defHttp } from '/@/utils/http/axios';
import { Result } from '/#/axios';

enum Api {
  modelingConfigList = '/service/manage/modelingConfig/list',
  modelingConfigSaveOrUpdate = '/service/manage/modelingConfig/saveOrUpdate',
  modelingConfigDelete = '/service/manage/modelingConfig/delete',
}

/**
 * @description: Get sample list value
 */

export const modelingConfigList = (params) =>
  defHttp.post<Result>({
    url: Api.modelingConfigList,
    params: params,
    // data: params,
    headers: {
      // @ts-ignore
      ignoreCancelToken: true,
    },
  });

export const modelingConfigSaveOrUpdate = (params) =>
  defHttp.post<Result>({
    url: Api.modelingConfigSaveOrUpdate,
    params: params,
    // data: params,
    headers: {
      // @ts-ignore
      ignoreCancelToken: true,
    },
  });

export const modelingConfigDelete = (params) =>
  defHttp.post<Result>({
    url: Api.modelingConfigDelete,
    params: params,
    // data: params,
    headers: {
      // @ts-ignore
      ignoreCancelToken: true,
    },
  });
