'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));


};