文件名从 exam-admin/src/main/java/com/gkhy/exam/admin/app/AppCourseController.java 修改 |
| | |
| | | package com.gkhy.exam.admin.app; |
| | | package com.gkhy.exam.admin.controller.app; |
| | | |
| | | |
| | | import com.gkhy.exam.common.api.CommonResult; |
| | |
| | | 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.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | @Autowired |
| | | private ExCourseService courseService; |
| | | |
| | | @PreAuthorize("hasAnyAuthority('train:exam:student')") |
| | | @ApiOperation(value = "根据id获取课程信息") |
| | | @GetMapping(value = { "/{courseId}" }) |
| | | public CommonResult getCompanyInfo(@PathVariable(value = "courseId", required = true) Long courseId) |