179 lines
8.2 KiB
JavaScript
179 lines
8.2 KiB
JavaScript
|
|
/**
|
||
|
|
* @param {Egg.Application} app - egg application
|
||
|
|
*/
|
||
|
|
module.exports = app => {
|
||
|
|
const { router, controller } = app;
|
||
|
|
|
||
|
|
// 管理系统新增普通管理员账号信息
|
||
|
|
router.post("/addAdmin", controller.admin.addAdmin);
|
||
|
|
// 管理系统查看普通管理员账号信息
|
||
|
|
router.post("/showAdmin", controller.admin.showAdmin);
|
||
|
|
// 管理系统编辑普通管理员账号信息
|
||
|
|
router.post("/editAdmin", controller.admin.editAdmin);
|
||
|
|
// 管理系统删除普通管理员账号信息
|
||
|
|
router.post("/deleteAdmin", controller.admin.deleteAdmin);
|
||
|
|
// 管理系统导出普通管理员账号信息数据
|
||
|
|
router.post("/downloadAdminData", controller.admin.downloadAdminData);
|
||
|
|
|
||
|
|
// 管理系统新增考试信息
|
||
|
|
router.post("/addExam", controller.exam.addExam);
|
||
|
|
// 管理系统查看考试信息
|
||
|
|
router.post("/showExam", controller.exam.showExam);
|
||
|
|
// 管理系统编辑考试信息
|
||
|
|
router.post("/editExam", controller.exam.editExam);
|
||
|
|
// 管理系统删除考试信息
|
||
|
|
router.post("/deleteExam", controller.exam.deleteExam);
|
||
|
|
// 管理系统导出考试信息数据
|
||
|
|
router.post("/downloadExamData", controller.exam.downloadExamData);
|
||
|
|
|
||
|
|
// 管理系统新增用户账号信息
|
||
|
|
router.post("/addUser", controller.user.addUser);
|
||
|
|
// 管理系统查看用户账号信息
|
||
|
|
router.post("/showUser", controller.user.showUser);
|
||
|
|
// 管理系统编辑用户账号信息
|
||
|
|
router.post("/editUser", controller.user.editUser);
|
||
|
|
// 管理系统删除用户账号信息
|
||
|
|
router.post("/deleteUser", controller.user.deleteUser);
|
||
|
|
// 管理系统导出用户账号信息数据
|
||
|
|
router.post("/downloadUserData", controller.user.downloadUserData);
|
||
|
|
|
||
|
|
// 比较身份证号
|
||
|
|
router.post("/diffIdentityCard", controller.diff.diffIdentityCard);
|
||
|
|
// 比较邮箱
|
||
|
|
router.post("/diffEmail", controller.diff.diffEmail);
|
||
|
|
// 比较电话号码
|
||
|
|
router.post("/diffPhone", controller.diff.diffPhone);
|
||
|
|
|
||
|
|
// 管理系统查看用户关键信息变更
|
||
|
|
router.post("/auditList", controller.audit.auditList);
|
||
|
|
// 管理系统审核用户关键信息变更
|
||
|
|
router.post("/userMsgAudit", controller.audit.userMsgAudit);
|
||
|
|
|
||
|
|
// 管理系统检索考生姓名
|
||
|
|
router.post("/searchUserName", controller.search.searchUserName);
|
||
|
|
// 管理系统检索考生身份证号码
|
||
|
|
router.post("/searchIdentityCard", controller.search.searchIdentityCard);
|
||
|
|
// 管理系统检索考试 uid
|
||
|
|
router.post("/searchExamUid", controller.search.searchExamUid);
|
||
|
|
// 管理系统检索工作单位
|
||
|
|
router.post("/searchWorkplace", controller.search.searchWorkplace);
|
||
|
|
// 管理系统检索报名结果说明
|
||
|
|
router.post("/searchResult", controller.search.searchResult);
|
||
|
|
|
||
|
|
// 管理系统查找指定考生姓名
|
||
|
|
router.post("/findUserName", controller.find.findUserName);
|
||
|
|
// 管理系统查找指定考生身份证号
|
||
|
|
router.post("/findIdentityCard", controller.find.findIdentityCard);
|
||
|
|
// 管理系统查找指定考试 uid
|
||
|
|
router.post("/findExamUid", controller.find.findExamUid);
|
||
|
|
// 管理系统查找指定工作单位
|
||
|
|
router.post("/findWorkplace", controller.find.findWorkplace);
|
||
|
|
|
||
|
|
// 管理系统新增考生报名信息
|
||
|
|
router.post("/addApplication", controller.application.addApplication);
|
||
|
|
// 管理系统查看考生报名信息
|
||
|
|
router.post("/showApplication", controller.application.showApplication);
|
||
|
|
// 管理系统编辑考生报名信息
|
||
|
|
router.post("/editApplication", controller.application.editApplication);
|
||
|
|
// 管理系统删除考生报名信息
|
||
|
|
router.post("/deleteApplication", controller.application.deleteApplication);
|
||
|
|
// 管理系统导出考生报名信息数据
|
||
|
|
router.post("/downloadApplicationData", controller.application.downloadApplicationData);
|
||
|
|
|
||
|
|
// 管理系统新增考生考试结果
|
||
|
|
router.post("/addGrades", controller.grades.addGrades);
|
||
|
|
// 管理系统查看考生考试结果
|
||
|
|
router.post("/showGrades", controller.grades.showGrades);
|
||
|
|
// 管理系统编辑考生考试结果
|
||
|
|
router.post("/editGrades", controller.grades.editGrades);
|
||
|
|
// 管理系统删除考生考试结果
|
||
|
|
router.post("/deleteGrades", controller.grades.deleteGrades);
|
||
|
|
// 管理系统导出考生考试结果数据
|
||
|
|
router.post("/downloadGradesData", controller.grades.downloadGradesData);
|
||
|
|
|
||
|
|
// 查看导入错误记录
|
||
|
|
router.post("/showImporterror", controller.importerror.showImporterror);
|
||
|
|
// 删除导入错误记录
|
||
|
|
router.post("/deleteImporterror", controller.importerror.deleteImporterror);
|
||
|
|
|
||
|
|
// 管理系统新增题库白名单
|
||
|
|
router.post("/addTopicWhitelist", controller.topicWhitelist.addTopicWhitelist);
|
||
|
|
// 管理系统查看题库白名单
|
||
|
|
router.post("/showTopicWhitelist", controller.topicWhitelist.showTopicWhitelist);
|
||
|
|
// 管理系统编辑题库白名单
|
||
|
|
router.post("/editTopicWhitelist", controller.topicWhitelist.editTopicWhitelist);
|
||
|
|
// 管理系统删除题库白名单
|
||
|
|
router.post("/deleteTopicWhitelist", controller.topicWhitelist.deleteTopicWhitelist);
|
||
|
|
// 管理系统导出题库白名单
|
||
|
|
router.post("/downloadTopicWhitelistData", controller.topicWhitelist.downloadTopicWhitelistData);
|
||
|
|
|
||
|
|
// 管理系统新增问答题
|
||
|
|
router.post("/addInterlocution", controller.interlocution.addInterlocution);
|
||
|
|
// 管理系统查看问答题
|
||
|
|
router.post("/showInterlocution", controller.interlocution.showInterlocution);
|
||
|
|
// 管理系统编辑问答题
|
||
|
|
router.post("/editInterlocution", controller.interlocution.editInterlocution);
|
||
|
|
// 管理系统删除问答题
|
||
|
|
router.post("/deleteInterlocution", controller.interlocution.deleteInterlocution);
|
||
|
|
// 管理系统导出问答题
|
||
|
|
router.post("/downloadInterlocutionData", controller.interlocution.downloadInterlocutionData);
|
||
|
|
|
||
|
|
// 管理系统新增选择题
|
||
|
|
router.post("/addJudgment", controller.judgment.addJudgment);
|
||
|
|
// 管理系统查看选择题
|
||
|
|
router.post("/showJudgment", controller.judgment.showJudgment);
|
||
|
|
// 管理系统编辑选择题
|
||
|
|
router.post("/editJudgment", controller.judgment.editJudgment);
|
||
|
|
// 管理系统删除选择题
|
||
|
|
router.post("/deleteJudgment", controller.judgment.deleteJudgment);
|
||
|
|
// 管理系统导出选择题
|
||
|
|
router.post("/downloadJudgmentData", controller.judgment.downloadJudgmentData);
|
||
|
|
|
||
|
|
// 管理系统新增多选题
|
||
|
|
router.post("/addMultiple", controller.multiple.addMultiple);
|
||
|
|
// 管理系统查看多选题
|
||
|
|
router.post("/showMultiple", controller.multiple.showMultiple);
|
||
|
|
// 管理系统编辑多选题
|
||
|
|
router.post("/editMultiple", controller.multiple.editMultiple);
|
||
|
|
// 管理系统删除多选题
|
||
|
|
router.post("/deleteMultiple", controller.multiple.deleteMultiple);
|
||
|
|
// 管理系统导出多选题
|
||
|
|
router.post("/downloadMultipleData", controller.multiple.downloadMultipleData);
|
||
|
|
|
||
|
|
// 管理系统新增单选题
|
||
|
|
router.post("/addRadio", controller.radio.addRadio);
|
||
|
|
// 管理系统查看单选题
|
||
|
|
router.post("/showRadio", controller.radio.showRadio);
|
||
|
|
// 管理系统编辑单选题
|
||
|
|
router.post("/editRadio", controller.radio.editRadio);
|
||
|
|
// 管理系统删除单选题
|
||
|
|
router.post("/deleteRadio", controller.radio.deleteRadio);
|
||
|
|
// 管理系统导出单选题
|
||
|
|
router.post("/downloadRadioData", controller.radio.downloadRadioData);
|
||
|
|
|
||
|
|
// 查看监控记录
|
||
|
|
router.post("/showMonitoring", controller.monitoring.showMonitoring);
|
||
|
|
// 删除监控记录
|
||
|
|
router.post("/deleteMonitoring", controller.monitoring.deleteMonitoring);
|
||
|
|
|
||
|
|
// 导出小鹅通导入用户
|
||
|
|
router.post("/importXiaoeTech", controller.download.importXiaoeTech);
|
||
|
|
// 导出小鹅通开课学员
|
||
|
|
router.post("/commencementXiaoeTech", controller.download.commencementXiaoeTech);
|
||
|
|
// 导出批量报名导入 excel 表
|
||
|
|
router.post("/importApplicationData", controller.download.importApplicationData);
|
||
|
|
// 导出考试星学员导入 excel 表
|
||
|
|
router.post("/importExamStars", controller.download.importExamStars);
|
||
|
|
// 导出培训证书发放用户导入 excel 表
|
||
|
|
router.post("/importIssuance", controller.download.importIssuance);
|
||
|
|
// 导出培训证书发放用户照片文件夹
|
||
|
|
router.post("/importUserPhoto", controller.download.importUserPhoto);
|
||
|
|
// 上传用户照片
|
||
|
|
router.post("/uploadUserPhoto", controller.download.uploadUserPhoto);
|
||
|
|
// 导出考试成绩导入 excel 表
|
||
|
|
router.post("/importGradesData", controller.download.importGradesData);
|
||
|
|
|
||
|
|
// 核验用户身份证二要素
|
||
|
|
router.post("/CNTEV", controller.cntev.CNTEV);
|
||
|
|
};
|