You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
927 B

'use strict';
const advisoryNotice = require('../../controllers/advisoryNotice/advisoryNotice');
module.exports = function (app, router, opts) {
app.fs.api.logAttr['GET/advisoryNotices/list'] = { content: '获取资讯公告', visible: true };
router.get('/advisoryNotices/list', advisoryNotice.getAdvisoryNotices);
app.fs.api.logAttr['POST/advisoryNotices/addOrUpdate'] = { content: '新增或编辑资讯公告', visible: true };
router.post('/advisoryNotices/addOrUpdate', advisoryNotice.addOrUpdateAdvisoryNotice);
app.fs.api.logAttr['DEL/advisoryNotices/:id'] = { content: '删除资讯公告', visible: true };
router.delete('/advisoryNotices/:id', advisoryNotice.delAdvisoryNotice);
app.fs.api.logAttr['POST/updateAdvisoryNotices/:id'] = { content: '上架或者下架公告', visible: true };
router.post('/updateAdvisoryNotices/:id', advisoryNotice.updateAdvisoryNoticeState);
};