From 4525db077789d82f0e667d047863348a31e9b6b9 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期一, 10 七月 2023 11:25:00 +0800
Subject: [PATCH] 代理过滤器添加用户、令牌、IP等验证功能

---
 src/main/java/com/moon/server/mapper/sys/ResMapper.java |   58 +++++++++++++++++++++++++++++++---------------------------
 1 files changed, 31 insertions(+), 27 deletions(-)

diff --git a/src/main/java/com/moon/server/mapper/sys/ResMapper.java b/src/main/java/com/moon/server/mapper/sys/ResMapper.java
index 7a5861b..ae4c5e3 100644
--- a/src/main/java/com/moon/server/mapper/sys/ResMapper.java
+++ b/src/main/java/com/moon/server/mapper/sys/ResMapper.java
@@ -2,22 +2,21 @@
 
 import com.moon.server.entity.sys.ResEntity;
 import org.apache.ibatis.annotations.Mapper;
-import org.springframework.web.bind.annotation.ResponseBody;
+import org.springframework.stereotype.Repository;
 
 import java.util.List;
 
 /**
- * 璧勬簮琛�
- * @author sws
- * @date 2022-09-28
+ * 璧勬簮
+ * @author WWW
  */
 @Mapper
-@ResponseBody
+@Repository
 public interface ResMapper {
     /**
      * 鏌ヨ璁板綍鏁�
      *
-     * @param name 琛ㄥ悕
+     * @param name 鍚嶇О
      * @return 璁板綍鏁�
      */
     public Integer selectCount(String name);
@@ -25,12 +24,27 @@
     /**
      * 鍒嗛〉鏌ヨ
      *
-     * @param name   琛ㄥ悕
+     * @param name   鍚嶇О
      * @param limit  璁板綍鏁�
      * @param offset 鍋忕Щ閲�
      * @return 鍒楄〃
      */
     public List<ResEntity> selectByPage(String name, Integer limit, Integer offset);
+
+    /**
+     * 鏌ヨ鎵�鏈�
+     *
+     * @return
+     */
+    public List<ResEntity> selectAll();
+
+    /**
+     * 鏍规嵁ID鏌ヨ
+     *
+     * @param id
+     * @return
+     */
+    public ResEntity selectById(int id);
 
     /**
      * 鏍规嵁瑙掕壊鏌ヨ璁板綍鏁�
@@ -53,10 +67,10 @@
     /**
      * 鎻掑叆涓�鏉�
      *
-     * @param resEntity
+     * @param entity
      * @return
      */
-    public Integer insertRes(ResEntity resEntity);
+    public Integer insert(ResEntity entity);
 
     /**
      * 鎻掑叆澶氭潯
@@ -64,7 +78,7 @@
      * @param list
      * @return
      */
-    public Integer insertRess(List<ResEntity> list);
+    public Integer inserts(List<ResEntity> list);
 
     /**
      * 鍒犻櫎涓�鏉�
@@ -72,7 +86,7 @@
      * @param id
      * @return
      */
-    public Integer deleteRes(int id);
+    public Integer delete(int id);
 
     /**
      * 鍒犻櫎澶氭潯
@@ -80,31 +94,21 @@
      * @param ids
      * @return
      */
-    public Integer deleteRess(List<Integer> ids);
+    public Integer deletes(List<Integer> ids);
 
     /**
      * 鏇存柊涓�鏉�
      *
-     * @param resEntity
+     * @param entity
      * @return
      */
-    public Integer updateRes(ResEntity resEntity);
+    public Integer update(ResEntity entity);
 
     /**
-     * 鏌ヨ鍗曟潯鏁版嵁
+     * 鏇存柊澶氭潯
      *
-     * @param id
+     * @param list
      * @return
      */
-    public ResEntity selectRes(int id);
-
-    /**
-     * 鏌ヨ鎵�鏈�
-     *
-     * @return
-     */
-    public List<ResEntity> selectResAll();
-
-
-
+    public Integer updates(List<ResEntity> list);
 }

--
Gitblit v1.9.3