【重置方法修改DELETE方式】

This commit is contained in:
weizhihong 2022-11-22 15:59:23 +08:00
parent 3f1a6fb508
commit 47f9385fa7

View File

@ -81,7 +81,7 @@ public class TrainingDraftV2Controller {
/** /**
* 重置当前用户的某个实训草稿的内容 * 重置当前用户的某个实训草稿的内容
*/ */
@PostMapping("/reset/{trainingId}") @DeleteMapping("/reset/{trainingId}")
public void resetTraining(@PathVariable("trainingId") Long trainingId, @RequestAttribute AccountVO user) { public void resetTraining(@PathVariable("trainingId") Long trainingId, @RequestAttribute AccountVO user) {
this.training2DraftService.resetTraining(trainingId,user.getId()); this.training2DraftService.resetTraining(trainingId,user.getId());
} }