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.
23 lines
915 B
23 lines
915 B
'use strict';
|
|
|
|
const organization = require('../../controllers/organization/index');
|
|
|
|
module.exports = function (app, router, opts, AuthCode) {
|
|
|
|
app.fs.api.logAttr['POST/organization'] = { content: '增加机构', visible: true };
|
|
router.post('/organization', organization.addOrganization(opts))
|
|
|
|
// 修改机构信息
|
|
app.fs.api.logAttr['PUT/organization/:id'] = { content: '修改机构信息', visible: true };
|
|
router.put('/organization/:id', organization.editOrganization(opts))
|
|
|
|
// 删除机构信息
|
|
app.fs.api.logAttr['DEL/organization/:id'] = { content: '删除机构信息', visible: true };
|
|
router.del('/organization/:id', organization.deleteOrganization(opts))
|
|
|
|
//获取机构信息列表
|
|
app.fs.api.logAttr['GET/organization'] = { content: '获取机构信息列表', visible: true };
|
|
router.get('/organization', organization.getOrganizationList(opts));
|
|
|
|
|
|
};
|
|
|