var express = require('express')
var router = express.Router()
var orgService = require('../service/orgService')
var logSercice = require('../service/logService')

// 获取组织机构
router.get('/getOrgs', function (req, res, next) {
  let opts = req.query
  orgService.getOrgs(opts, result => {
    logSercice.log(req.userId, 'getOrgs', result.status === false ? result.message : '')
    res.json(result)
  })
})
// 添加组织机构
router.post('/addOrg', function (req, res, next) {
  let opts = req.body
  orgService.addOrg(opts, result => {
    logSercice.log(req.userId, 'addOrg', result.status === false ? result.message : '')
    res.json(result)
  })
})
// 更新组织机构
router.post('/editOrg', function (req, res, next) {
  let opts = req.body
  orgService.editOrg(opts, result => {
    logSercice.log(req.userId, 'editOrg', result.status === false ? result.message : '')
    res.json(result)
  })
})

module.exports = router
@@ -284,97 +284,8 @@
 %3E %7B%0A
-    logSercice.log(req.userId, 'getOrgs', result.status === false ? result.message : '')%0A
     

修改：删除获取组织机构的日志