文件名从 exam-admin/src/main/java/com/gkhy/exam/admin/web/ExExamPaperController.java 修改 |
| | |
| | | package com.gkhy.exam.admin.web; |
| | | package com.gkhy.exam.admin.controller.web; |
| | | |
| | | |
| | | import com.gkhy.exam.common.annotation.Log; |
| | |
| | | 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.*; |
| | | |
| | |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @PreAuthorize("hasAnyAuthority('train:exam:company','train:exam:depart','train:exam:workshop','train:exam:other')") |
| | | @Log(title = "试卷管理", businessType = BusinessType.INSERT) |
| | | @ApiOperation(value = "新增试卷") |
| | | @PostMapping |
| | |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @PreAuthorize("hasAnyAuthority('train:exam:company','train:exam:depart','train:exam:workshop','train:exam:other')") |
| | | @Log(title = "试卷管理", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "编辑试卷") |
| | | @PutMapping |
| | |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @Log(title = "试卷管理", businessType = BusinessType.UPDATE) |
| | | @PreAuthorize("hasAnyAuthority('train:exam:company','train:exam:depart','train:exam:workshop','train:exam:other')") |
| | | @Log(title = "试卷管理", businessType = BusinessType.DELETE) |
| | | @ApiOperation(value = "删除试卷") |
| | | @DeleteMapping(value = { "/{paperId}" }) |
| | | public CommonResult delete(@PathVariable(value = "paperId", required = true) Long paperId){ |