| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | /** |
| | |
| | | @Autowired |
| | | private ExResourceService resourceService; |
| | | |
| | | @PreAuthorize("hasAnyAuthority('train:exam:student')") |
| | | @ApiOperation(value = "根据课时id获取资源信息") |
| | | @GetMapping(value = { "/getResourceByPeriod" }) |
| | | public CommonResult getResourceByPeriod(@RequestParam(value = "periodId", required = true) Long periodId) |