| | |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | @Autowired |
| | | private ExStudentStudyService studentStudyService; |
| | | |
| | | @PreAuthorize("hasAnyAuthority('train:exam:student')") |
| | | @ApiOperation(value = "新增学习记录") |
| | | @PostMapping |
| | | public CommonResult add(@Validated @RequestBody ExStudentStudy studentStudy){ |
| | | return CommonResult.success(studentStudyService.insertStudentStudy(studentStudy)); |
| | | } |
| | | |
| | | @PreAuthorize("hasAnyAuthority('train:exam:student')") |
| | | @ApiOperation(value = "上报学习进度") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "body", name = "id", dataType = "long", required = true, value = "学习记录id"), |