// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/**
 * 气瓶进度看板配置分页查询
 * @param params
 * @param options?
 */
export async function qiPingComprehensiveKanbanSettingService(
  body: Report.Settings.QiPingComprehensiveKanbanSettingCriteria,
  options?: { [key: string]: any },
) {
  return request<
    Api.ServiceResult<Api.PageResult<Report.Settings.QiPingComprehensiveKanbanSettingDto>>
  >('/qiPingComprehensiveKanbanSetting/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/**
 * 气瓶综合看板配置创建
 * @param body
 * @param options
 */
export async function create(
  body: Report.Settings.QiPingComprehensiveKanbanSettingCreate,
  options?: { [key: string]: any },
) {
  return request<Common.ServiceResult<string>>('/qiPingComprehensiveKanbanSetting/create', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/**
 * 气瓶综合看板配置更新
 * @param body
 * @param options
 */
export async function update(
  body: Report.Settings.QiPingComprehensiveKanbanSettingUpdate,
  options?: { [key: string]: any },
) {
  return request<Common.ServiceResult<string>>('/qiPingComprehensiveKanbanSetting/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/**
 * 气瓶综合看板配置删除
 * @param body
 * @param options
 */
export async function remove(body: Common.RemoveDto, options?: { [key: string]: any }) {
  return request<Common.ServiceResult<string>>(`/api/qiPingComprehensiveKanbanSetting/remove`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
