/*
 * @Author: code4eat awesomedema@gmail.com
 * @Date: 2023-03-03 16:31:27
 * @LastEditors: code4eat awesomedema@gmail.com
 * @LastEditTime: 2023-10-19 16:43:53
 * @FilePath: /KC-MiddlePlatform/src/pages/platform/setting/pubDicTypeMana/service.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

import { request } from 'umi';

//获取table列表数据

export const getData = (key) => {
  return request('/costAccount/setting/getReportColumn', {
    method: 'GET',
    params: { reportCode: key },
  });
};

//获取Tabs
export const getTabs = () => {
  return request('/costAccount/setting/getReport', {
    method: 'GET',
  });
};

//新增表格数据

export const addData = (data) => {
  return request('/costAccount/setting/addReportColumn', {
    method: 'POST',
    data,
  });
};

//编辑权
export const editData = (data) => {
  return request('/costAccount/setting/editReportColumn', {
    method: 'POST',
    data,
  });
};

//删除表格操作

export const delData = (id) => {
  return request('/costAccount/setting/deleteReportColumn', {
    method: 'POST',
    params: { id },
  });
};
