|
|
|
@ -78,7 +78,7 @@ public class ExamController extends BaseController {
|
|
|
|
|
@Log(title = "考试", businessType = BusinessType.INSERT)
|
|
|
|
|
@PostMapping("/add")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public AjaxResult addSave(@Validated ExamSaveReqDTO reqDTO) {
|
|
|
|
|
public AjaxResult addSave(@RequestBody @Validated ExamSaveReqDTO reqDTO) {
|
|
|
|
|
return toAjax(examManager.saveOrUpdate(reqDTO));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -96,7 +96,7 @@ public class ExamController extends BaseController {
|
|
|
|
|
@Log(title = "考试", businessType = BusinessType.UPDATE)
|
|
|
|
|
@PostMapping("/edit")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public AjaxResult editSave(@Validated ExamSaveReqDTO reqDTO) {
|
|
|
|
|
public AjaxResult editSave(@RequestBody @Validated ExamSaveReqDTO reqDTO) {
|
|
|
|
|
return toAjax(examManager.saveOrUpdate(reqDTO));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|