From 7af361a932b81f832364b5eeb31f3299d97fa448 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=98=8E=E6=A2=81?= <2429105222@qq.com> Date: Mon, 26 Jun 2023 17:01:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E6=8D=AE=E4=B8=8A=E4=BC=A0=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../glxp/api/controller/inout/PlatformController.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/com/glxp/api/controller/inout/PlatformController.java b/src/main/java/com/glxp/api/controller/inout/PlatformController.java index b8c0f81a6..435b86477 100644 --- a/src/main/java/com/glxp/api/controller/inout/PlatformController.java +++ b/src/main/java/com/glxp/api/controller/inout/PlatformController.java @@ -30,6 +30,7 @@ import org.springframework.web.bind.annotation.*; import org.springframework.web.client.RestTemplate; import javax.annotation.Resource; +import javax.security.auth.AuthPermission; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -54,6 +55,15 @@ public class PlatformController { return ResultVOUtils.error(500, "删除失败"); } + @AuthRuleAnnotation("") + @PostMapping("/udiwms/platform/delect") + public BaseResponse delect(@RequestBody PlatformEntity platformEntity) { + if (platformService.remove(platformEntity.getId())>0) { + ResultVOUtils.success("删除成功"); + } + return ResultVOUtils.error(500, "删除失败"); + } + @AuthRuleAnnotation("") @PostMapping("/udiwms/platform/update")