From e33cc6968e5c7c57013413b077421b77714ed69b Mon Sep 17 00:00:00 2001
From: liyj <1003249715@qq.com>
Date: Tue, 20 Aug 2024 14:48:17 +0800
Subject: [PATCH] 1、修改代码生成器 2、优化网关解析token信息 3、web端登录授权操作 4、web端修改密码操作

---
 dyh-service/dyh-base/src/main/resources/template/webController.ftl |   16 ++++++----------
 1 files changed, 6 insertions(+), 10 deletions(-)

diff --git a/dyh-service/dyh-base/src/main/resources/template/webController.ftl b/dyh-service/dyh-base/src/main/resources/template/webController.ftl
index 7f6fcbe..f875772 100644
--- a/dyh-service/dyh-base/src/main/resources/template/webController.ftl
+++ b/dyh-service/dyh-base/src/main/resources/template/webController.ftl
@@ -120,19 +120,15 @@
     }
 
     /**
-    * 根据主键单个/批量删除
-    * @url {ctx}/api/web<#if classPath??>/${classPath}</#if>/deleteByIds
-    * @param ids 主键编号
+    * 根据主键单个
+    * @url {ctx}/api/web<#if classPath??>/${classPath}</#if>/deleteById
+    * @param id 主键编号
     * @return Object
     */
-    @GetMapping("/deleteByIds")
-    public Object deleteByIds(@RequestParam(value = "ids") String ids) {
+    @GetMapping("/deleteById")
+    public Object deleteById(@RequestParam(value = "id") String id) {
         try {
-            if (ids.indexOf(",") != -1) {
-                service.removeByIds(Stream.of(ids.split(",")).collect(Collectors.toList()));
-            }else{
-                service.removeById(ids);
-            }
+            service.removeById(id);
             return ReturnSucUtils.getRepInfo();
         } catch (Exception e) {
             return ReturnFailUtils.getRepInfo();

--
Gitblit v1.8.0