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

/**
 * 气瓶制造工序看板配置分页查询
 * @param params
 * @param options?
 */
export async function qiPingProcessKanbanSettingService(
  body: Report.Settings.QiPingProcessKanbanSettingCriteria,
  options?: { [key: string]: any },
) {
  return request<Api.ServiceResult<Api.PageResult<Report.Settings.QiPingProcessKanbanSettingDto>>>(
    '/api/qiPingProcessKanbanSetting/page',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    },
  );
}

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

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