'use strict'; const console = require('../../controllers/console/index'); module.exports = function (app, router, opts) { //我的工作台 app.fs.api.logAttr['GET/user/:userId/workbench'] = { content: '查询工作台问题', visible: false }; router.get('/user/:userId/workbench', console.getWorkbench); //项目概览 app.fs.api.logAttr['GET/user/:userId/projects/info'] = { content: '查询项目概览', visible: false }; router.get('/user/:userId/projects/info', console.getProjectsInfo); //BI分析模块 app.fs.api.logAttr['GET/user/:userId/bi/analysis'] = { content: '查询BI分析数据', visible: false }; router.get('/user/:userId/bi/analysis', console.getBiAnalysis); //最新动态 app.fs.api.logAttr['GET/user/:userId/latest/dynamic'] = { content: '查询最新动态', visible: false }; router.get('/user/:userId/latest/dynamic', console.getLatestDynamic); };