
import { MesQualityInspectionSteelScrapAbnormalWorkflowPageModel, MesQualityInspectionSteelScrapAbnormalWorkflowPageParams, MesQualityInspectionSteelScrapAbnormalWorkflowPageResult } from './model/FgysycqkfkModel';
import { defHttp } from '/@/utils/http/axios';
import { ErrorMessageMode } from '/#/axios';

enum Api {
  Page = '/zlgl/fgysycqkfk/page',
  List = '/zlgl/fgysycqkfk/list',
  Info = '/zlgl/fgysycqkfk/info',
  MesQualityInspectionSteelScrapAbnormalWorkflow = '/zlgl/fgysycqkfk',
  
  
  
}

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

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

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

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

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




