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

/**
 * 高压喷漆工序看板配置分页查询
 * @param params
 * @param options?
 */
export async function gaoYaProcessKanbanSettingService(
  body: Report.Settings.GaoYaProcessKanbanSettingPageCriteria,
  options?: { [key: string]: any },
) {
  return request<Api.ServiceResult<Api.PageResult<Report.Settings.GaoYaProcessKanbanSettingDto>>>(
    '/api/gaoYaProcessKanbanSetting/page',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    },
  );
}

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

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