Commit c58b9da6 by aye

代码提交

parent 37bba362
......@@ -57,6 +57,24 @@ public class PaperController {
return Result.success(paper.cashToPaperDto());
}
@GetMapping("/paper/download-first-feedback/{paperId}")
public Result downloadFirstFeedback(@PathVariable Integer paperId){
Paper paper = ApplicationRegistry.paperService().findPaperDetailById(paperId);
return Result.success(paper.cashToPaperDto());
}
@GetMapping("/paper/download-second-feedback/{paperId}")
public Result downloadSecondFeedback(@PathVariable Integer paperId){
Paper paper = ApplicationRegistry.paperService().findPaperDetailById(paperId);
return Result.success(paper.cashToPaperDto());
}
@GetMapping("/paper/download-answer/{paperId}")
public Result downloadAnswer(@PathVariable Integer paperId){
Paper paper = ApplicationRegistry.paperService().findPaperDetailById(paperId);
return Result.success(paper.cashToPaperDto());
}
@DeleteMapping("/paper/{paperId}")
public Result deletePaper(@PathVariable Integer paperId){
ApplicationRegistry.paperService().deletePaper(paperId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment