kongzy
2024-06-26 daf7acb4f107a427e4a83ba1eb26e5e6012cbdaf
exam-admin/src/main/java/com/gkhy/exam/admin/app/AppResourceController.java
@@ -6,6 +6,7 @@
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.*;
/**
@@ -23,6 +24,7 @@
    @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)