import http from "./config";

// 获取路径图概览
export const getRouterOverview = (routerId) => http.get(`/admin/router/overview?routerId=${routerId}`)

//新建或编辑路径图
export const editRoutered = (obj) => http.post('/admin/router/edit', obj)
export const editRouterModel = (obj) => http.post('/admin/router/editModel', obj)
export const editProjectModel = (obj) => http.post('/admin/project/editModel', obj)

// 路径图模式修改接口
export const editRouteredModel = (obj) => http.post('/admin/router/editModel', obj)

// 新建或编辑路径图共享文档
export const editRouteredDoc = (obj) => http.post('/admin/router/editShareRouter', obj)