文件名从 exam-admin/src/main/java/com/gkhy/exam/admin/app/AppStudentStudyController.java 修改 |
| | |
| | | package com.gkhy.exam.admin.app; |
| | | package com.gkhy.exam.admin.controller.app; |
| | | |
| | | |
| | | import com.gkhy.exam.common.annotation.RepeatSubmit; |
| | | import com.gkhy.exam.common.api.CommonResult; |
| | | import com.gkhy.exam.system.domain.ExStudentStudy; |
| | | import com.gkhy.exam.system.service.ExStudentStudyService; |
| | |
| | | @Autowired |
| | | private ExStudentStudyService studentStudyService; |
| | | |
| | | @RepeatSubmit |
| | | @PreAuthorize("hasAnyAuthority('train:exam:student')") |
| | | @ApiOperation(value = "新增学习记录") |
| | | @PostMapping |
| | |
| | | }) |
| | | @PostMapping("/progress") |
| | | public CommonResult progress(@RequestBody ExStudentStudy studentStudy){ |
| | | System.out.println("progress info:"+studentStudy.getId()+","+studentStudy.getPhaseId()+","+studentStudy.getPeriodId()+","+studentStudy.getStudentId()); |
| | | studentStudyService.progress(studentStudy); |
| | | return CommonResult.success(); |
| | | } |