'use strict'; const pointDeploy = require('../../controllers/pointDeploy'); module.exports = function (app, router, opts) { app.fs.api.logAttr['GET/project/:projectId/planarGraph'] = { content: '获取结构物平面图数据', visible: false }; router.get('/project/:projectId/planarGraph', pointDeploy.findSingleGraph); app.fs.api.logAttr['POST/planarGraph/add'] = { content: '新增结构物平面图', visible: true }; router.post('/planarGraph/add', pointDeploy.createGraph); app.fs.api.logAttr['PUT/planarGraph/:id/modify'] = { content: '修改结构物平面图', visible: true }; router.post('/planarGraph/:id/modify', pointDeploy.updateGraph); app.fs.api.logAttr['DEL/project/graph/:id'] = { content: '删除结构物布设图', visible: false }; router.del('/project/graph/:id', pointDeploy.delProjectGraph); app.fs.api.logAttr['GET/picture/:pictureId/deploy/points'] = { content: '获取点位布设信息', visible: false }; router.get('/picture/:pictureId/deploy/points', pointDeploy.getDeployPoints); app.fs.api.logAttr['POST/set/picture/:pictureId/deploy/points'] = { content: '点位布设', visible: true }; router.post('/set/picture/:pictureId/deploy/points', pointDeploy.setDeployPoints); };