From b36d9a7ee5460505d99ba9341b3f8338bc08ed92 Mon Sep 17 00:00:00 2001 From: tiger_zhou Date: Tue, 22 Aug 2023 13:46:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xiannccda/controller/DeviceAreaConfigController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/club/joylink/xiannccda/controller/DeviceAreaConfigController.java b/src/main/java/club/joylink/xiannccda/controller/DeviceAreaConfigController.java index a98831a..12eae49 100644 --- a/src/main/java/club/joylink/xiannccda/controller/DeviceAreaConfigController.java +++ b/src/main/java/club/joylink/xiannccda/controller/DeviceAreaConfigController.java @@ -13,6 +13,7 @@ import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @@ -40,7 +41,7 @@ public class DeviceAreaConfigController { @SecurityRequirement(name = "jwt") @Operation(summary = "保存修改") @PostMapping("/save") - public String save(DeviceAreaConfigDto dto) { + public String save(@RequestBody DeviceAreaConfigDto dto) { this.areaConfigService.saveOrUpdate(dto); return "ok"; }