| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.io.IOException; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | } |
| | | |
| | | |
| | | @RepeatSubmit |
| | | @Log(title = "题目管理", businessType = BusinessType.DELETE) |
| | | @ApiOperation(value = "导入题目") |
| | | @PostMapping("/upload") |
| | | public CommonResult uploadQuestion(@RequestParam("file")MultipartFile file) throws IOException { |
| | | return questionService.uploadQuestion(file); |
| | | } |
| | | |
| | | |
| | | |
| | | } |