'use strict'; const community = require('../../controllers/superScreen/community'); module.exports = function (app, router, opts, AuthCode) { //新增住房信息 app.fs.api.logAttr['POST/affordable/housing/add'] = { content: '新增住房信息', visible: true }; router.post('/affordable/housing/add', community.addAffordableHousing(opts)); //获取租户家庭人口统计 app.fs.api.logAttr['GET/home/person'] = { content: '获取租户家庭人口统计', visible: true }; router.get('/home/person', community.getHomePerson(opts)); //获取租户年龄分布 app.fs.api.logAttr['GET/person/age'] = { content: '获取租户年龄分布', visible: true }; router.get('/person/age', community.getPersonAge(opts)); //获取社区房屋统计信息 app.fs.api.logAttr['GET/community/info'] = { content: '获取社区房屋统计信息', visible: true }; router.get('/community/info', community.getHomeInfo(opts)); //获取房管局通知 app.fs.api.logAttr['GET/community/fgjv/notice'] = { content: '获取房管局通知', visible: true }; router.get('/community/fgjv/notice', community.getFgjvNotice(opts)); };