
import { MesQualityInspectionLeaveFactoryWorkflowPageModel, MesQualityInspectionLeaveFactoryWorkflowPageParams, MesQualityInspectionLeaveFactoryWorkflowPageResult } from './model/CccpfxspdModel';
import { defHttp } from '/@/utils/http/axios';
import { ErrorMessageMode } from '/#/axios';

enum Api {
  Page = '/zlgl/cccpfxspd/page',
  List = '/zlgl/cccpfxspd/list',
  Info = '/zlgl/cccpfxspd/info',
  MesQualityInspectionLeaveFactoryWorkflow = '/zlgl/cccpfxspd',
  
  
  
}

/**
 * @description: 查询MesQualityInspectionLeaveFactoryWorkflow分页列表
 */
export async function getMesQualityInspectionLeaveFactoryWorkflowPage(params: MesQualityInspectionLeaveFactoryWorkflowPageParams, mode: ErrorMessageMode = 'modal') {
  return defHttp.get<MesQualityInspectionLeaveFactoryWorkflowPageResult>(
    {
      url: Api.Page,
      params,
    },
    {
      errorMessageMode: mode,
    },
  );
}

/**
 * @description: 获取MesQualityInspectionLeaveFactoryWorkflow信息
 */
export async function getMesQualityInspectionLeaveFactoryWorkflow(id: String, mode: ErrorMessageMode = 'modal') {
  return defHttp.get<MesQualityInspectionLeaveFactoryWorkflowPageModel>(
    {
      url: Api.Info,
      params: { id },
    },
    {
      errorMessageMode: mode,
    },
  );
}

/**
 * @description: 新增MesQualityInspectionLeaveFactoryWorkflow
 */
export async function addMesQualityInspectionLeaveFactoryWorkflow(mesQualityInspectionLeaveFactoryWorkflow: Recordable, mode: ErrorMessageMode = 'modal') {
  return defHttp.post<boolean>(
    {
      url: Api.MesQualityInspectionLeaveFactoryWorkflow,
      params: mesQualityInspectionLeaveFactoryWorkflow,
    },
    {
      errorMessageMode: mode,
    },
  );
}

/**
 * @description: 更新MesQualityInspectionLeaveFactoryWorkflow
 */
export async function updateMesQualityInspectionLeaveFactoryWorkflow(mesQualityInspectionLeaveFactoryWorkflow: Recordable, mode: ErrorMessageMode = 'modal') {
  return defHttp.put<boolean>(
    {
      url: Api.MesQualityInspectionLeaveFactoryWorkflow,
      params: mesQualityInspectionLeaveFactoryWorkflow,
    },
    {
      errorMessageMode: mode,
    },
  );
}

/**
 * @description: 删除MesQualityInspectionLeaveFactoryWorkflow（批量删除）
 */
export async function deleteMesQualityInspectionLeaveFactoryWorkflow(ids: string[], mode: ErrorMessageMode = 'modal') {
  return defHttp.delete<boolean>(
    {
      url: Api.MesQualityInspectionLeaveFactoryWorkflow,
      data: ids,
    },
    {
      errorMessageMode: mode,
    },
  );
}




