
import { MesWarehouseDisasmoutPageModel, MesWarehouseDisasmoutPageParams, MesWarehouseDisasmoutPageResult } from './model/CcckModel';
import { defHttp } from '/@/utils/http/axios';
import { ErrorMessageMode } from '/#/axios';

enum Api {
  Page = '/ckgl/ccck/page',
  List = '/ckgl/ccck/list',
  Info = '/ckgl/ccck/info',
  MesWarehouseDisasmout = '/ckgl/ccck',
  
  
  
}

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

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

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

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

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




