sys.js 5.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. 'use strict';
  2. module.exports = app => {
  3. const { router, controller } = app;
  4. // 部门管理
  5. router.post('/sys/dept/add', controller.sysDeptController.addDeptAndPerson);
  6. router.post('/sys/dept/update', controller.sysDeptController.updateDeptAndPerson);
  7. router.post('/sys/dept/updateData', controller.sysDeptController.dataMigration); // 地区迁移传id修改地区及地区编码
  8. router.get('/sys/dept/listDept', controller.sysDeptController.listDept);// 查找迁移地区
  9. router.get('/sys/dept/one', controller.sysDeptController.one);
  10. router.get('/sys/dept/delete', controller.sysDeptController.deleteWithSub);
  11. router.get('/sys/dept/list', controller.sysDeptController.listSortAsc);
  12. router.get('/sys/dept/listByLevel', controller.sysDeptController.listSortAscWithUser);
  13. router.get('/sys/dept/listForPage', controller.sysDeptController.listForPageSortWithUser);
  14. router.get('/sys/dept/orderChange', controller.sysDeptController.orderChange);
  15. router.get('/sys/dept/link', controller.sysDeptController.findLink);
  16. // 字典管理
  17. router.post('/sys/dict/add', controller.sysDictController.add);
  18. router.post('/sys/dict/update', controller.sysDictController.update);
  19. router.get('/sys/dict/one', controller.sysDictController.one);
  20. router.get('/sys/dict/delete', controller.sysDictController.deleteWithSub);
  21. // router.get('/sys/dict/list', controller.sysDictController.list);
  22. router.get('/sys/dict/listForPage', controller.sysDictController.listForPageSortAsc);
  23. // 菜单管理
  24. router.post('/sys/menu/add', controller.sysMenuController.add);
  25. router.post('/sys/menu/update', controller.sysMenuController.update);
  26. router.get('/sys/menu/one', controller.sysMenuController.one);
  27. router.get('/sys/menu/delete', controller.sysMenuController.deleteWithSub);
  28. router.get('/sys/menu/list', controller.sysMenuController.listSortAsc);
  29. router.get('/sys/menu/listForPage', controller.sysMenuController.listForPageSortWithNameR);
  30. router.get('/sys/menu/loginerRoleMenu', controller.sysMenuController.loginerRoleMenu);
  31. // 角色管理
  32. // router.post('/sys/role/add', controller.sysRoleController.add);
  33. router.post('/sys/role/update', controller.sysRoleController.update);
  34. router.get('/sys/role/one', controller.sysRoleController.one);
  35. // router.get('/sys/role/delete', controller.sysRoleController.deleteWithSub);
  36. // router.get('/sys/role/list', controller.sysRoleController.list);
  37. router.get('/sys/role/listForPage', controller.sysRoleController.listForPageWithNameR);
  38. // 人员管理
  39. router.post('/sys/user/batchAdd', controller.sysUserController.batchAdd);
  40. router.post('/sys/user/upload', controller.sysUserController.upload);
  41. router.post('/sys/user/update', controller.sysUserController.update);
  42. router.post('/sys/user/updateInfo', controller.sysUserController.updateInfoWithUser);
  43. router.post('/sys/user/updatePwd', controller.sysUserController.updatePwd); // 因为加密带特殊字符(&、+) 所以改为POST方式-2024-5-15-CH
  44. router.get('/sys/user/setPassword', controller.sysUserController.setPassword);
  45. router.get('/sys/user/setOpenId', controller.sysUserController.setOpenId);
  46. router.get('/sys/user/setAppletsId', controller.sysUserController.setAppletsId);
  47. router.post('/sys/user/updatePwdBeforeLogin', controller.sysUserController.updatePwdBeforeLogin);
  48. router.post('/sys/user/selectOne', controller.sysUserController.selectOne);
  49. router.get('/sys/user/one', controller.sysUserController.onePop);
  50. router.get('/sys/user/delete', controller.sysUserController.deleteWithSub);
  51. router.get('/sys/user/listForPage', controller.sysUserController.listForPage);
  52. router.get('/sys/user/exportExcel', controller.sysUserController.exportExcelByUser);
  53. router.get('/sys/user/values', controller.sysUserController.valueByUser);
  54. // 登陆
  55. router.get('/sys/login/in', controller.sysLoginController.login);
  56. router.get('/sys/login/out', controller.sysLoginController.out);
  57. router.get('/sys/login/session', controller.sysLoginController.session);
  58. router.post('/sys/login/connection', controller.sysLoginController.connection);
  59. router.get('/sys/log/listForPage', controller.sysLogController.listForPage);
  60. router.get('/sys/log/list', controller.sysLogController.list);
  61. router.get('/sys/log/delete', controller.sysLogController.delete);
  62. // router.get('/sys/bn/decryption', controller.sysLoginController.bnJiemi); // 备案解密
  63. router.get('/sys/encryption/sm4EncryptionSysUser1', controller.sysLoginController.sm4EncryptionSysUser1); // 数据加密处理-用户表-sysUser
  64. router.get('/sys/encryption/sm4EncryptionVisit2', controller.sysLoginController.sm4EncryptionVisit2); // 数据加密处理-探访表-visit
  65. router.get('/sys/encryption/sm4EncryptionOverRange3', controller.sysLoginController.sm4EncryptionOverRange3); // 数据加密处理-探访超范围添加表-overRange
  66. router.get('/sys/encryption/sm4EncryptionUrgency4', controller.sysLoginController.sm4EncryptionUrgency4); // 数据加密处理-探访时紧急需求表-UrgencyNotice
  67. router.get('/sys/encryption/sm4EncryptionChInfo5', controller.sysLoginController.sm4EncryptionChInfo5); // 数据加密处理-老人信息表&&子女信息&&赡养人信息-info(前50W数据)
  68. router.get('/sys/encryption/sm4EncryptionChInfo6', controller.sysLoginController.sm4EncryptionChInfo6); // 数据加密处理-老人信息表&&子女信息&&赡养人信息-info(50W以后)
  69. router.post('/sys/upload/uploadImageXy', controller.sysLoginController.uploadImageXy); // 上传图片到华为云OBS
  70. router.get('/sys/login/getbankToken', controller.sysLoginController.getbankToken); // 时间银行接口-2023-4-28
  71. router.post('/sys/dept5/pay', controller.sysDeptController.managerPayByDept5); // 购买视频巡访服务-CH
  72. router.get('/sys/dept5/pay/list', controller.sysDeptController.managerPayByDept5List); // 购买视频巡访服务-CH
  73. };