12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- 'use strict';
- module.exports = app => {
- const { router, controller } = app;
- // 部门管理
- router.post('/sys/dept/add', controller.sysDeptController.addDeptAndPerson);
- router.post('/sys/dept/update', controller.sysDeptController.updateDeptAndPerson);
- router.post('/sys/dept/updateData', controller.sysDeptController.dataMigration); // 地区迁移传id修改地区及地区编码
- router.get('/sys/dept/listDept', controller.sysDeptController.listDept);// 查找迁移地区
- router.get('/sys/dept/one', controller.sysDeptController.one);
- router.get('/sys/dept/delete', controller.sysDeptController.deleteWithSub);
- router.get('/sys/dept/list', controller.sysDeptController.listSortAsc);
- router.get('/sys/dept/listByLevel', controller.sysDeptController.listSortAscWithUser);
- router.get('/sys/dept/listForPage', controller.sysDeptController.listForPageSortWithUser);
- router.get('/sys/dept/orderChange', controller.sysDeptController.orderChange);
- router.get('/sys/dept/link', controller.sysDeptController.findLink);
- // 字典管理
- router.post('/sys/dict/add', controller.sysDictController.add);
- router.post('/sys/dict/update', controller.sysDictController.update);
- router.get('/sys/dict/one', controller.sysDictController.one);
- router.get('/sys/dict/delete', controller.sysDictController.deleteWithSub);
- // router.get('/sys/dict/list', controller.sysDictController.list);
- router.get('/sys/dict/listForPage', controller.sysDictController.listForPageSortAsc);
- // 菜单管理
- router.post('/sys/menu/add', controller.sysMenuController.add);
- router.post('/sys/menu/update', controller.sysMenuController.update);
- router.get('/sys/menu/one', controller.sysMenuController.one);
- router.get('/sys/menu/delete', controller.sysMenuController.deleteWithSub);
- router.get('/sys/menu/list', controller.sysMenuController.listSortAsc);
- router.get('/sys/menu/listForPage', controller.sysMenuController.listForPageSortWithNameR);
- router.get('/sys/menu/loginerRoleMenu', controller.sysMenuController.loginerRoleMenu);
- // 角色管理
- // router.post('/sys/role/add', controller.sysRoleController.add);
- router.post('/sys/role/update', controller.sysRoleController.update);
- router.get('/sys/role/one', controller.sysRoleController.one);
- // router.get('/sys/role/delete', controller.sysRoleController.deleteWithSub);
- // router.get('/sys/role/list', controller.sysRoleController.list);
- router.get('/sys/role/listForPage', controller.sysRoleController.listForPageWithNameR);
- // 人员管理
- router.post('/sys/user/batchAdd', controller.sysUserController.batchAdd);
- router.post('/sys/user/upload', controller.sysUserController.upload);
- router.post('/sys/user/update', controller.sysUserController.update);
- router.post('/sys/user/updateInfo', controller.sysUserController.updateInfoWithUser);
- router.post('/sys/user/updatePwd', controller.sysUserController.updatePwd); // 因为加密带特殊字符(&、+) 所以改为POST方式-2024-5-15-CH
- router.get('/sys/user/setPassword', controller.sysUserController.setPassword);
- router.get('/sys/user/setOpenId', controller.sysUserController.setOpenId);
- router.get('/sys/user/setAppletsId', controller.sysUserController.setAppletsId);
- router.post('/sys/user/updatePwdBeforeLogin', controller.sysUserController.updatePwdBeforeLogin);
- router.post('/sys/user/selectOne', controller.sysUserController.selectOne);
- router.get('/sys/user/one', controller.sysUserController.onePop);
- router.get('/sys/user/delete', controller.sysUserController.deleteWithSub);
- router.get('/sys/user/listForPage', controller.sysUserController.listForPage);
- router.get('/sys/user/exportExcel', controller.sysUserController.exportExcelByUser);
- router.get('/sys/user/values', controller.sysUserController.valueByUser);
- // 登陆
- router.get('/sys/login/in', controller.sysLoginController.login);
- router.get('/sys/login/out', controller.sysLoginController.out);
- router.get('/sys/login/session', controller.sysLoginController.session);
- router.post('/sys/login/connection', controller.sysLoginController.connection);
- router.get('/sys/log/listForPage', controller.sysLogController.listForPage);
- router.get('/sys/log/list', controller.sysLogController.list);
- router.get('/sys/log/delete', controller.sysLogController.delete);
- // router.get('/sys/bn/decryption', controller.sysLoginController.bnJiemi); // 备案解密
- router.get('/sys/encryption/sm4EncryptionSysUser1', controller.sysLoginController.sm4EncryptionSysUser1); // 数据加密处理-用户表-sysUser
- router.get('/sys/encryption/sm4EncryptionVisit2', controller.sysLoginController.sm4EncryptionVisit2); // 数据加密处理-探访表-visit
- router.get('/sys/encryption/sm4EncryptionOverRange3', controller.sysLoginController.sm4EncryptionOverRange3); // 数据加密处理-探访超范围添加表-overRange
- router.get('/sys/encryption/sm4EncryptionUrgency4', controller.sysLoginController.sm4EncryptionUrgency4); // 数据加密处理-探访时紧急需求表-UrgencyNotice
- router.get('/sys/encryption/sm4EncryptionChInfo5', controller.sysLoginController.sm4EncryptionChInfo5); // 数据加密处理-老人信息表&&子女信息&&赡养人信息-info(前50W数据)
- router.get('/sys/encryption/sm4EncryptionChInfo6', controller.sysLoginController.sm4EncryptionChInfo6); // 数据加密处理-老人信息表&&子女信息&&赡养人信息-info(50W以后)
- router.post('/sys/upload/uploadImageXy', controller.sysLoginController.uploadImageXy); // 上传图片到华为云OBS
- router.get('/sys/login/getbankToken', controller.sysLoginController.getbankToken); // 时间银行接口-2023-4-28
- router.post('/sys/dept5/pay', controller.sysDeptController.managerPayByDept5); // 购买视频巡访服务-CH
- router.get('/sys/dept5/pay/list', controller.sysDeptController.managerPayByDept5List); // 购买视频巡访服务-CH
- };
|