
import { MesQualityInspectionOtherWorkflowPageModel, MesQualityInspectionOtherWorkflowPageParams, MesQualityInspectionOtherWorkflowPageResult } from './model/ScbmypwtdModel';
import { defHttp } from '/@/utils/http/axios';
import { ErrorMessageMode } from '/#/axios';

enum Api {
  Page = '/zlgl/scbmypwtd/page',
  List = '/zlgl/scbmypwtd/list',
  Info = '/zlgl/scbmypwtd/info',
  MesQualityInspectionOtherWorkflow = '/zlgl/scbmypwtd',
  
  
  
}

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

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

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

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

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




