import { ID, IDS } from '@/api/base'; import { defHttp } from '@/utils/http/axios'; enum Api { root = '/air/managementInfo', list = '/air/managementInfo/list', } export function list(params: any) { return defHttp.get({ url: Api.list, params }); } export function getInfo(id: ID) { return defHttp.get({ url: `${Api.root}/${id}` }); } export function add(data: any) { return defHttp.post({ url: Api.root, data }); } export function update(data: any) { return defHttp.put({ url: Api.root, data }); } export function removeByIds(ids: IDS) { return defHttp.deleteWithMsg({ url: `${Api.root}/${ids.join(',')}` }); }