'use strict'; const projectSituation = require('../../controllers/projectRegime/projectSituation'); module.exports = function (app, router, opts) { app.fs.api.logAttr['GET/firmList'] = { content: '获取公司列表', visible: false }; router.get('/firmList', projectSituation.getFirmList); app.fs.api.logAttr['GET/projectList'] = { content: '获取工程概况列表', visible: false }; router.get('/projectList', projectSituation.projectList); app.fs.api.logAttr['GET/user/site/list'] = { content: '获取用户关注工地列表', visible: false }; router.get('/user/site/list', projectSituation.getUserSiteList); app.fs.api.logAttr['POST/addProject'] = { content: '新增修改工程概况', visible: false }; router.post('/addProject', projectSituation.postAddProject); app.fs.api.logAttr['DEL/delProject/:id'] = { content: '删除工程概况', visible: false }; router.del('/delProject/:id', projectSituation.delProject); app.fs.api.logAttr['put/project/status'] = { content: '修改项目状态', visible: false }; router.put('/project/status', projectSituation.putProjectStatus); }