From 9d25cb0ec78260a283b06fd96bc7b156f32cf9df Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期五, 30 九月 2022 14:28:52 +0800 Subject: [PATCH] 1 --- src/main/java/com/lf/server/controller/data/AuthController.java | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/lf/server/controller/data/AuthController.java b/src/main/java/com/lf/server/controller/data/AuthController.java index 27a9202..bef586d 100644 --- a/src/main/java/com/lf/server/controller/data/AuthController.java +++ b/src/main/java/com/lf/server/controller/data/AuthController.java @@ -92,7 +92,7 @@ @ApiImplicitParam(name = "authEntity", value = "瀛楀吀瀹炰綋绫�", dataType = "com.lf.server.entity.data.AuthEntity", paramType = "body", example = "") }) @PostMapping(value = "/insertAuth", produces = "application/json; charset=UTF-8") - public ResponseMsg<Integer> insertAuth(AuthEntity authEntity) { + public ResponseMsg<Integer> insertAuth(@RequestBody AuthEntity authEntity) { try { int count = authService.insertAuth(authEntity); @@ -155,7 +155,7 @@ }) @ResponseBody @PostMapping(value = "/updateAuth", produces = "application/json; charset=UTF-8") - public ResponseMsg<Integer> updateAuth(AuthEntity authEntity) { + public ResponseMsg<Integer> updateAuth(@RequestBody AuthEntity authEntity) { try { int count = authService.updateAuth(authEntity); @@ -191,6 +191,4 @@ return fail(ex.getMessage(), null); } } - - } -- Gitblit v1.9.3