
import { MesQualityInspectionSteelScrapWorkflowPageModel, MesQualityInspectionSteelScrapWorkflowPageParams, MesQualityInspectionSteelScrapWorkflowPageResult } from './model/FgwgyscllcdModel';
import { defHttp } from '/@/utils/http/axios';
import { ErrorMessageMode } from '/#/axios';

enum Api {
  Page = '/zlgl/fgwgyscllcd/page',
  List = '/zlgl/fgwgyscllcd/list',
  Info = '/zlgl/fgwgyscllcd/info',
  MesQualityInspectionSteelScrapWorkflow = '/zlgl/fgwgyscllcd',
  
  
  
}

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

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

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

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

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




