From 14821e28286d773ad5ff2c13510e39c5eb117daf Mon Sep 17 00:00:00 2001 From: kongzy <kongzy> Date: 星期五, 05 七月 2024 13:46:32 +0800 Subject: [PATCH] update --- exam-admin/src/main/java/com/gkhy/exam/admin/web/ExResourceController.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/exam-admin/src/main/java/com/gkhy/exam/admin/web/ExResourceController.java b/exam-admin/src/main/java/com/gkhy/exam/admin/web/ExResourceController.java index 67334d2..4fa831b 100644 --- a/exam-admin/src/main/java/com/gkhy/exam/admin/web/ExResourceController.java +++ b/exam-admin/src/main/java/com/gkhy/exam/admin/web/ExResourceController.java @@ -51,7 +51,7 @@ @Log(title = "资源管理", businessType = BusinessType.INSERT) @ApiOperation(value = "新增资源") @PostMapping - public CommonResult add(@Validated @ModelAttribute ExResource resource){ + public CommonResult add(@Validated @RequestBody ExResource resource){ return CommonResult.success(resourceService.insertResource(resource)); } @@ -59,12 +59,12 @@ @Log(title = "资源管理", businessType = BusinessType.UPDATE) @ApiOperation(value = "编辑资源") @PutMapping - public CommonResult edit(@Validated @ModelAttribute ExResource resource){ + public CommonResult edit(@Validated @RequestBody ExResource resource){ return CommonResult.success(resourceService.updateResource(resource)); } @RepeatSubmit - @Log(title = "资源管理", businessType = BusinessType.UPDATE) + @Log(title = "资源管理", businessType = BusinessType.DELETE) @ApiOperation(value = "删除资源") @DeleteMapping(value = { "/{resourceId}" }) public CommonResult delete(@PathVariable(value = "resourceId", required = true) Long resourceId){ -- Gitblit v1.9.2