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

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

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

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