import request from '@/utils/request'; /** 获取路径单元列表*/ export function getRouteUnitList(id, data) { return request({ url: `/api/mapBuild/${id}/routeUnit`, method: 'get', params: data }); } /** 创建路径单元*/ export function addRouteUnit(data) { return request({ url: `/api/mapBuild/routeUnit`, method: 'post', data: data, }); } /** 删除路径单元*/ export function delRouteUnit(id) { return request({ url: `/api/mapBuild/routeUnit/${id}`, method: 'DELETE' }); } /** 获取路径单元*/ export function getRouteUnit(id) { return request({ url: `/api/mapBuild/routeUnit/${id}`, method: 'get' }); } /** 更新路径单元*/ export function setRouteUnit(data) { return request({ url: `/api/mapBuild/routeUnit/${data.id}`, method: 'put', data: data, }); }