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

/**
 * 抽空工序看板配置分页查询
 * @param params
 * @param options?
 */
export async function chouKongProcessKanbanSettingService(
  body: Report.Settings.ChouKongProcessKanbanSettingCriteria,
  options?: { [key: string]: any },
) {
  return request<
    Api.ServiceResult<Api.PageResult<Report.Settings.ChouKongProcessKanbanSettingDto>>
  >('/chouKongProcessKanbanSetting/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

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

/**
 * 抽空工序看板配置更新
 * @param body
 * @param options
 */
export async function update(
  body: Report.Settings.ChouKongProcessKanbanSettingUpdate,
  options?: { [key: string]: any },
) {
  return request<Common.ServiceResult<string>>('/chouKongProcessKanbanSetting/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/chouKongProcessKanbanSetting/remove`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
