router.js 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680
  1. 'use strict';
  2. /**
  3. * @param {Egg.Application} app - egg application
  4. */
  5. module.exports = app => {
  6. const { router, controller } = app;
  7. router.get('/', controller.home.index);
  8. // 共通查询单条记录方法
  9. router.get('/api/train/common/findone/:modelname', controller.common.findone);
  10. // 共通批量查询方法
  11. router.post(
  12. '/api/train/common/findbyids/:modelname',
  13. controller.common.findbyids
  14. );
  15. // 共通查询表
  16. router.get('/api/train/common/findbymodel', controller.common.findbymodel);
  17. router.get('/api/train/common/findyear', controller.common.findyear);
  18. // 基础设置表路由
  19. router.get('/api/train/setting/termlist', controller.setting.termList); // 请求所有期
  20. router.get('/api/train/setting/findone', controller.setting.findone);
  21. router.resources('setting', '/api/train/setting', controller.setting); // index、create、show、destroy
  22. router.post(
  23. 'setting',
  24. '/api/train/setting/update/:id',
  25. controller.setting.update
  26. );
  27. // 科目表设置路由
  28. router.resources('subject', '/api/train/subject', controller.subject); // index、create、show、destroy
  29. router.post(
  30. 'subject',
  31. '/api/train/subject/update/:id',
  32. controller.subject.update
  33. );
  34. // 教师表设置路由
  35. router.get('teacher', '/api/train/teacher/show/:id', controller.teacher.show);
  36. router.resources('teacher', '/api/train/teacher', controller.teacher); // index、create、show、destroy
  37. router.post(
  38. 'teacher',
  39. '/api/train/teacher/update/:id',
  40. controller.teacher.update
  41. );
  42. router.post(
  43. 'teacher',
  44. '/api/train/teacher/status',
  45. controller.teacher.status
  46. );
  47. router.post('/api/train/teacher/teaimport', controller.teacher.teaimport);
  48. router.post('/api/train/teacher/fetchteachers', controller.teacher.fetchteachers);
  49. // 作业表配置路由
  50. router.resources('task', '/api/train/task', controller.task); // index、create、show、destroy
  51. router.post('task', '/api/train/task/update/:id', controller.task.update);
  52. // 问卷题库表配置路由
  53. router.resources('question', '/api/train/question', controller.question); // index、create、show、destroy
  54. router.post(
  55. 'question',
  56. '/api/train/question/update/:id',
  57. controller.question.update
  58. );
  59. // 问卷表配置路由
  60. router.post(
  61. 'questionnaire',
  62. '/api/train/questionnaire',
  63. controller.questionnaire.create
  64. );
  65. router.delete(
  66. 'questionnaire',
  67. '/api/train/questionnaire/:id',
  68. controller.questionnaire.delete
  69. );
  70. router.post(
  71. 'questionnaire',
  72. '/api/train/questionnaire/update/:id',
  73. controller.questionnaire.update
  74. );
  75. router.get(
  76. 'questionnaire',
  77. '/api/train/questionnaire',
  78. controller.questionnaire.query
  79. );
  80. router.get(
  81. 'questionnaire',
  82. '/api/train/questionnaire/show/:id',
  83. controller.questionnaire.show
  84. );
  85. // 查询学校是否上报学生
  86. router.get('student', '/api/train/student/school', controller.student.getSchoolStudent);
  87. // 班级学生排号
  88. router.get('sutdent', '/api/train/student/arrangeNumber', controller.student.arrangeNumber);
  89. router.post(
  90. 'student',
  91. '/api/train/student/export',
  92. controller.student.exportStudent
  93. );
  94. // 学生表设置路由
  95. router.get(
  96. 'sutdent',
  97. '/api/train/student/finestudent/:id',
  98. controller.student.finestudent
  99. );
  100. router.get(
  101. 'sutdent',
  102. '/api/train/student/findscore',
  103. controller.student.findscore
  104. );
  105. router.get(
  106. 'sutdent',
  107. '/api/train/student/findbedroom',
  108. controller.student.findbedroom
  109. );
  110. router.get('sutdent', '/api/train/student/seek', controller.student.seek);
  111. router.resources('student', '/api/train/student', controller.student); // index、create、show、destroy
  112. router.post(
  113. 'student',
  114. '/api/train/student/update/:id',
  115. controller.student.update
  116. );
  117. router.post('student', '/api/train/student/upjob', controller.student.upjob);
  118. router.post(
  119. 'student',
  120. '/api/train/student/deleteclass',
  121. controller.student.deleteclass
  122. ); // 删除学生班级
  123. router.post(
  124. 'student',
  125. '/api/train/student/findbystuids',
  126. controller.student.findbystuids
  127. );
  128. router.post(
  129. 'student',
  130. '/api/train/student/deletestus',
  131. controller.student.deletestus
  132. ); // 删除学生多条
  133. router.post(
  134. 'student',
  135. '/api/train/student/updatabedroom',
  136. controller.student.updatabedroom
  137. ); // 批量学生寝室号
  138. // 班主任表设置路由
  139. router.resources(
  140. 'headteacher',
  141. '/api/train/headteacher',
  142. controller.headteacher
  143. ); // index、create、show、destroy
  144. router.post(
  145. 'headteacher',
  146. '/api/train/headteacher/update/:id',
  147. controller.headteacher.update
  148. );
  149. // 查询该期还可以使用的寝室
  150. router.get('bedroom', '/api/train/bedroom/assignroom', controller.bedroom.getAssignRoom);
  151. // 批量修改寝室(新)
  152. router.post('bedroom', '/api/train/bedroom/batch', controller.bedroom.updateStudent);
  153. // 寝室表设置路由
  154. router.get('/api/train/bedroom/student/:id', controller.bedroom.roomstu); // 根据班级id查询寝室信息
  155. router.resources('bedroom', '/api/train/bedroom', controller.bedroom); // index、create、show、destroy
  156. router.post(
  157. 'bedroom',
  158. '/api/train/bedroom/update/:id',
  159. controller.bedroom.update
  160. );
  161. router.post('bedroom', '/api/train/bedroom/apart', controller.bedroom.apart);
  162. router.post(
  163. 'bedroom',
  164. '/api/train/bedroom/ibeacon',
  165. controller.bedroom.ibeacon
  166. );
  167. // 模板设置班级
  168. router.get('class', '/api/train/class/settemplate', controller.class.toSetClassSetting);
  169. // 班级表设置路由
  170. router.get(
  171. 'class',
  172. '/api/train/class/classinfo/:id',
  173. controller.class.classinfo
  174. );
  175. router.post(
  176. 'class',
  177. '/api/train/class/upclasses',
  178. controller.class.upclasses
  179. );
  180. router.post('class', '/api/train/class/notice', controller.class.notice);
  181. router.resources('class', '/api/train/class', controller.class); // index、create、show、destroy
  182. router.post('class', '/api/train/class/update/:id', controller.class.update);
  183. router.post('class', '/api/train/class/divide', controller.class.divide);
  184. router.post('class', '/api/train/class/uptea', controller.class.uptea);
  185. router.post(
  186. 'class',
  187. '/api/train/class/upstuclass/:id',
  188. controller.class.studentupclass
  189. ); // 学生修改班级
  190. // 部门表设置路由
  191. router.resources(
  192. 'department',
  193. '/api/train/department',
  194. controller.department
  195. ); // index、create、show、destroy
  196. router.post(
  197. 'department',
  198. '/api/train/department/update/:id',
  199. controller.department.update
  200. );
  201. // 位置表设置路由
  202. router.resources('location', '/api/train/location', controller.location); // index、create、show、destroy
  203. router.post(
  204. 'location',
  205. '/api/train/location/update/:id',
  206. controller.location.update
  207. );
  208. // 培训计划表设置路由
  209. router.resources('trainplan', '/api/train/trainplan', controller.trainplan); // index、create、show、destroy
  210. router.post(
  211. 'trainplan',
  212. '/api/train/trainplan/update/:id',
  213. controller.trainplan.update
  214. );
  215. router.post(
  216. '/api/train/trainplan/exportExcel',
  217. controller.trainplan.exportExcel
  218. ); // 导出
  219. router.post(
  220. '/api/train/trainplan/exportSchool',
  221. controller.trainplan.exportSchool
  222. ); // 导出计划学校
  223. router.post(
  224. '/api/train/trainplan/exportPlan',
  225. controller.trainplan.exportPlan
  226. ); // 导出计划日历
  227. router.post(
  228. '/api/train/trainplan/updateclass',
  229. controller.trainplan.updateclass
  230. );
  231. router.post(
  232. '/api/train/trainplan/updatereteacher',
  233. controller.trainplan.updatereteacher
  234. );
  235. // 培训计划年度批次表设置路由
  236. router.resources(
  237. 'trainplanyear',
  238. '/api/train/trainplanyear',
  239. controller.trainplanyear
  240. ); // index、create、show、destroy
  241. router.post(
  242. 'trainplanyear',
  243. '/api/train/trainplanyear/update/:id',
  244. controller.trainplanyear.update
  245. );
  246. // 节假日表设置路由
  247. router.resources('festival', '/api/train/festival', controller.festival); // index、create、show、destroy
  248. router.post(
  249. 'festival',
  250. '/api/train/festival/update/:id',
  251. controller.festival.update
  252. );
  253. // 新自动排课表
  254. router.post('/api/train/lesson/newarrange', controller.lesson.newArrange);
  255. // 课程表设置路由
  256. router.get('/api/train/lesson/teaclass', controller.lesson.teaclass);
  257. router.post(
  258. 'lesson',
  259. '/api/train/lesson/uplessones',
  260. controller.lesson.uplessones
  261. );
  262. router.get('/api/train/lesson/classbyteaid', controller.lesson.classbyteaid); // 根据计划id与教师id查询班级信息
  263. router.resources('lesson', '/api/train/lesson', controller.lesson); // index、create、show、destroy
  264. router.post(
  265. 'lesson',
  266. '/api/train/lesson/update/:id',
  267. controller.lesson.update
  268. );
  269. router.post(
  270. 'lesson',
  271. '/api/train/lesson/autolesson/:id',
  272. controller.lesson.autolesson
  273. ); // 自动排课
  274. router.post('lesson', '/api/train/lesson/check', controller.lesson.check); // 确定(锁死)课表
  275. // 培训计划学校上报时间表设置路由
  276. router.resources('schtime', '/api/train/schtime', controller.schtime); // index、create、show、destroy
  277. router.post(
  278. 'schtime',
  279. '/api/train/schtime/update/:id',
  280. controller.schtime.update
  281. );
  282. router.post(
  283. 'schtime',
  284. '/api/train/schtime/updateschtimes',
  285. controller.schtime.updateschtimes
  286. );
  287. // 班主任全年计划表设置路由
  288. router.get('teaplan', '/api/train/teaplan/divide', controller.teaplan.divide);
  289. router.get(
  290. 'teaplan',
  291. '/api/train/teaplan/findteacher',
  292. controller.teaplan.findteacher
  293. );
  294. router.resources('teaplan', '/api/train/teaplan', controller.teaplan); // index、create、show、destroy
  295. router.post(
  296. 'teaplan',
  297. '/api/train/teaplan/update/:id',
  298. controller.teaplan.update
  299. );
  300. // 计划自动排教师
  301. router.post('apply', '/api/train/apply/arrange', controller.apply.arrange);
  302. // 计划自动排教师
  303. router.post('apply', '/api/train/apply/sendmsg/:planid', controller.apply.sendmsg);
  304. // 计划自动排教师
  305. router.post('apply', '/api/train/apply/confirm/:planid', controller.apply.confirm);
  306. // 教师申请讲课表设置路由
  307. router.get(
  308. 'apply',
  309. '/api/train/apply/queryteacher',
  310. controller.apply.queryteacher
  311. );
  312. router.resources('apply', '/api/train/apply', controller.apply); // index、create、show、destroy
  313. router.post('apply', '/api/train/apply/update/:id', controller.apply.update);
  314. // 请假表设置路由
  315. router.resources('leave', '/api/train/leave', controller.leave); // index、create、show、destroy
  316. router.post('leave', '/api/train/leave/update/:id', controller.leave.update);
  317. // 分组表设置路由
  318. // 还原小组锁定
  319. router.get('group', '/api/train/group/returns/:classid', controller.group.returns);
  320. router.resources('group', '/api/train/group', controller.group); // index、create、show、destroy
  321. router.post('group', '/api/train/group/update/:id', controller.group.update);
  322. router.post('group', '/api/train/group/insert', controller.group.insert);
  323. router.post('group', '/api/train/group/exit', controller.group.exit);
  324. router.post('group', '/api/train/group/sethead', controller.group.sethead);
  325. router.post(
  326. 'group',
  327. '/api/train/group/findbystuid',
  328. controller.group.findbystuid
  329. );
  330. // 职责说明表设置路由
  331. router.get('/api/train/experience/docx', controller.experience.docx); // index、create、show、destroy
  332. router.resources('experience', '/api/train/experience', controller.experience); // index、create、show、destroy
  333. router.post('experience', '/api/train/experience/update/:id', controller.experience.update);
  334. // 职责说明表设置路由
  335. router.resources('duty', '/api/train/duty', controller.duty); // index、create、show、destroy
  336. router.post('duty', '/api/train/duty/update/:id', controller.duty.update);
  337. // 学生上传作业表设置路由
  338. router.resources(
  339. 'uploadtask',
  340. '/api/train/uploadtask',
  341. controller.uploadtask
  342. ); // index、create、show、destroy
  343. router.post(
  344. 'uploadtask',
  345. '/api/train/uploadtask/update/:id',
  346. controller.uploadtask.update
  347. );
  348. // 学生上传问卷表设置路由
  349. router.get(
  350. '/api/train/uploadquestion/completion',
  351. controller.uploadquestion.completion
  352. ); // 统计完成度
  353. router.resources(
  354. 'uploadquestion',
  355. '/api/train/uploadquestion',
  356. controller.uploadquestion
  357. ); // index、create、show、destroy
  358. router.post(
  359. 'uploadquestion',
  360. '/api/train/uploadquestion/update/:id',
  361. controller.uploadquestion.update
  362. );
  363. // 考勤表设置路由
  364. router.get('/api/train/attendance/wxauth', controller.attendance.wxauth); // 统计完成度
  365. router.resources(
  366. 'attendance',
  367. '/api/train/attendance',
  368. controller.attendance
  369. ); // index、create、show、destroy
  370. router.post(
  371. 'attendance',
  372. '/api/train/attendance/update/:id',
  373. controller.attendance.update
  374. );
  375. router.post(
  376. 'attendance',
  377. '/api/train/attendance/attendancecreate',
  378. controller.attendance.attendancecreate
  379. );
  380. router.post(
  381. 'attendance',
  382. '/api/train/attendance/attendancecreateList',
  383. controller.attendance.attendancecreateList
  384. );
  385. // 学校上传学生名单
  386. router.resources('school', '/api/train/school', controller.school); // index、create、show、destroy
  387. router.post(
  388. 'school',
  389. '/api/train/school/update/:id',
  390. controller.school.update
  391. );
  392. router.post('/api/train/school/import', controller.school.stuimport); // 名单上传
  393. // 民族表设置路由
  394. router.resources('nation', '/api/train/nation', controller.nation); // index、create、show、destroy
  395. router.post(
  396. 'nation',
  397. '/api/train/nation/update/:id',
  398. controller.nation.update
  399. );
  400. // 行政区划表设置路由
  401. router.resources('region', '/api/train/region', controller.region); // index、create、show、destroy
  402. router.post(
  403. 'region',
  404. '/api/train/region/update/:id',
  405. controller.region.update
  406. );
  407. // 用户表设置路由
  408. router.get('/api/train/user/schoolregister', controller.user.schoolregister); // 学校账号一键生成
  409. router.resources('user', '/api/train/user', controller.user); // index、create、show、destroy
  410. router.post('user', '/api/train/user/update/:id', controller.user.update);
  411. router.post('user', '/api/train/user/register', controller.user.register); // 学校注册
  412. router.post('user', '/api/train/user/bind', controller.user.bind); // 学生微信绑定
  413. router.post('user', '/api/train/user/userbind', controller.user.userbind); // 其他用户微信绑定
  414. router.post('user', '/api/train/user/appbind', controller.user.appbind); // 绑定小程序openid
  415. // 行政区划表设置路由
  416. router.resources('termquest', '/api/train/termquest', controller.termquest); // index、create、show、destroy
  417. router.post(
  418. 'termquest',
  419. '/api/train/termquest/update/:id',
  420. controller.termquest.update
  421. );
  422. // 微信端访问地址
  423. router.get('/api/train/auth', controller.weixin.auth); // 微信登录
  424. router.get('/api/train/appAuth', controller.weixin.appAuth); // 微信登录
  425. // 微信端访问地址
  426. router.get('/api/train/authtest', controller.weixin.authTest); // 微信登录测试
  427. // pc端登录
  428. router.post('/api/train/login', controller.login.login); // 登录
  429. // 微信端登录
  430. router.get('/api/train/qrcode', controller.login.qrcode); // 登录
  431. router.post('/api/train/wxcheck', controller.login.wxcheck); // 微信检查登录
  432. router.post('/api/train/wxlogin', controller.login.wxlogin); // 登录
  433. // 计算教师的分数
  434. router.get('score', '/api/train/score/computed', controller.score.computedScore);
  435. // 评分表设置路由
  436. router.resources('score', '/api/train/score', controller.score); // index、create、show、destroy
  437. router.post('score', '/api/train/score/update/:id', controller.score.update);
  438. // 上传资料表设置路由
  439. router.resources('material', '/api/train/material', controller.material); // index、create、show、destroy
  440. router.post(
  441. 'material',
  442. '/api/train/material/update/:id',
  443. controller.material.update
  444. );
  445. // 资料评分表设置路由
  446. router.resources(
  447. 'materialscore',
  448. '/api/train/materialscore',
  449. controller.materialscore
  450. ); // index、create、show、destroy
  451. router.post(
  452. 'materialscore',
  453. '/api/train/materialscore/update/:id',
  454. controller.materialscore.update
  455. );
  456. // 教师在线表设置路由
  457. router.resources('online', '/api/train/online', controller.online); // index、create、show、destroy
  458. router.post(
  459. 'online',
  460. '/api/train/online/update/:id',
  461. controller.online.update
  462. );
  463. // 聊天房间表设置路由
  464. router.resources('room', '/api/train/room', controller.room); // index、create、show、destroy
  465. router.post('room', '/api/train/room/update/:id', controller.room.update);
  466. // 聊天记录表设置路由
  467. router.resources('record', '/api/train/record', controller.record); // index、create、show、destroy
  468. router.post(
  469. 'record',
  470. '/api/train/record/update/:id',
  471. controller.record.update
  472. );
  473. // 通知表设置路由
  474. router.resources('notice', '/api/train/notice', controller.notice); // index、create、show、destroy
  475. router.post(
  476. 'notice',
  477. '/api/train/notice/update/:id',
  478. controller.notice.update
  479. );
  480. router.post('notice', '/api/train/notice/look', controller.notice.look);
  481. router.post('notice', '/api/train/notice/resend', controller.notice.resend);
  482. // 课程模板表设置路由
  483. router.resources(
  484. 'lessonmode',
  485. '/api/train/lessonmode',
  486. controller.lessonmode
  487. ); // index、create、show、destroy
  488. router.post(
  489. 'lessonmode',
  490. '/api/train/lessonmode/update/:id',
  491. controller.lessonmode.update
  492. );
  493. // 全年计划模板表设置路由
  494. router.resources(
  495. 'trainmodel',
  496. '/api/train/trainmodel',
  497. controller.trainmodel
  498. ); // index、create、show、destroy
  499. router.post(
  500. 'trainmodel',
  501. '/api/train/trainmodel/update/:id',
  502. controller.trainmodel.update
  503. );
  504. // 统计查询设置路由
  505. router.get('/api/train/count/countstudent', controller.count.countstudent);
  506. // 按学校统计查询设置路由
  507. router.get('/api/train/count/countschstu/:id', controller.count.countschstu);
  508. // 班级类型表配置路由
  509. router.resources('classtype', '/api/train/classtype', controller.classtype); // index、create、show、destroy
  510. router.post(
  511. 'classtype',
  512. '/api/train/classtype/update/:id',
  513. controller.classtype.update
  514. );
  515. // 学校上传任务表设置路由
  516. router.resources('job', '/api/train/job', controller.job); // index、create、show、destroy
  517. router.post('job', '/api/train/job/update/:id', controller.job.update);
  518. // 消息表设置路由
  519. router.resources('message', '/api/train/message', controller.message); // index、create、show、destroy
  520. router.post(
  521. 'message',
  522. '/api/train/message/update/:id',
  523. controller.message.update
  524. );
  525. // 直播房间
  526. router.resources('liveroom', '/api/train/liveroom', controller.liveroom); // index、create、show、destroy
  527. router.post(
  528. 'liveroom',
  529. '/api/train/liveroom/update/:id',
  530. controller.liveroom.update
  531. );
  532. // 通知看直播
  533. router.post(
  534. 'liveroom',
  535. '/api/train/liveroom/sendmsg',
  536. controller.liveroom.sendmsg
  537. );
  538. // 监听人数
  539. router.post(
  540. 'liveroom',
  541. '/api/train/liveroom/personcount',
  542. controller.liveroom.personcount
  543. );
  544. // 培训视频
  545. router.resources(
  546. 'trainvideo',
  547. '/api/train/trainvideo',
  548. controller.trainvideo
  549. ); // index、create、show、destroy
  550. router.post(
  551. 'trainvideo',
  552. '/api/train/trainvideo/update/:id',
  553. controller.trainvideo.update
  554. );
  555. // 答疑申请(教师)
  556. router.resources('answerapply', '/api/train/answerapply', controller.answerapply); // index、create、show、destroy
  557. router.post(
  558. 'answerapply',
  559. '/api/train/answerapply/update/:id',
  560. controller.answerapply.update
  561. );
  562. // 答疑房间
  563. router.resources('chatroom', '/api/train/chatroom', controller.chatroom); // index、create、show、destroy
  564. router.post(
  565. 'chatroom',
  566. '/api/train/chatroom/update/:id',
  567. controller.chatroom.update
  568. );
  569. // 答疑对话
  570. router.resources(
  571. 'answerchat',
  572. '/api/train/answerchat',
  573. controller.answerchat
  574. ); // index、create、show、destroy
  575. router.post(
  576. 'answerchat',
  577. '/api/train/answerchat/update/:id',
  578. controller.answerchat.update
  579. );
  580. // 个人分groupscore
  581. router.resources(
  582. 'personalscore',
  583. '/api/train/personalscore',
  584. controller.personalscore
  585. ); // index、create、show、destroy
  586. router.post(
  587. 'personalscore',
  588. '/api/train/personalscore/update/:id',
  589. controller.personalscore.update
  590. );
  591. // 上分(混合操作,有添加,也有修改)
  592. router.post(
  593. 'personalscore',
  594. '/api/train/personalscore/opera',
  595. controller.personalscore.opera
  596. );
  597. router.resources(
  598. 'groupscore',
  599. '/api/train/groupscore',
  600. controller.groupscore
  601. ); // index、create、show、destroy
  602. router.post(
  603. 'groupscore',
  604. '/api/train/groupscore/update/:id',
  605. controller.groupscore.update
  606. );
  607. // 组上分(混合操作,有添加,也有修改)
  608. router.post(
  609. 'groupscore',
  610. '/api/train/groupscore/opera',
  611. controller.groupscore.opera
  612. );
  613. // 证书检验
  614. router.get('/api/train/cerconfirm', controller.cerconfirm.index);
  615. // 工具方法
  616. router.post('/api/train/util', controller.util.utilMethod);
  617. // 新人才报
  618. router.get('talented', '/api/train/talented/export', controller.talented.export);
  619. router.resources('talented', '/api/train/talented', controller.talented); // index、create、show、destroy
  620. router.post('talented', '/api/train/talented/update/:id', controller.talented.update);
  621. // 问卷导出
  622. router.post('questionnaire', '/api/train/questionnaire/export', controller.questionnaire.export);
  623. // 作业导出
  624. router.post('task', '/api/train/task/export', controller.task.export);
  625. // 学生证书打印状态更改
  626. router.post('student', '/api/train/student/printcert', controller.student.printCert);
  627. };