From 71a2a8245db4c04be3f96a9eb9b47931d3130650 Mon Sep 17 00:00:00 2001
From: zlyx <1242874891@qq.com>
Date: 星期三, 18 一月 2023 17:09:43 +0800
Subject: [PATCH] refactor 重构 common, framework 包结构, 参照 cloud 版本拆分子模块 ; update 更新模块包名 ; delete 移除 sms 模块, oss 模块, framework 模块 (并入 common 模块) ;

---
 ruoyi-system/src/main/java/com/ruoyi/system/service/ISysPostService.java |   33 ++++++++++++++++-----------------
 1 files changed, 16 insertions(+), 17 deletions(-)

diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysPostService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysPostService.java
index 08058d6..0fbbe02 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysPostService.java
+++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysPostService.java
@@ -1,7 +1,7 @@
 package com.ruoyi.system.service;
 
-import com.ruoyi.common.core.page.IServicePlus;
-import com.ruoyi.common.core.page.TableDataInfo;
+import com.ruoyi.common.mybatis.core.page.PageQuery;
+import com.ruoyi.common.mybatis.core.page.TableDataInfo;
 import com.ruoyi.system.domain.SysPost;
 
 import java.util.List;
@@ -9,12 +9,12 @@
 /**
  * 宀椾綅淇℃伅 鏈嶅姟灞�
  *
- * @author ruoyi
+ * @author Lion Li
  */
-public interface ISysPostService extends IServicePlus<SysPost> {
+public interface ISysPostService {
 
 
-    TableDataInfo<SysPost> selectPagePostList(SysPost post);
+    TableDataInfo<SysPost> selectPagePostList(SysPost post, PageQuery pageQuery);
 
     /**
      * 鏌ヨ宀椾綅淇℃伅闆嗗悎
@@ -22,14 +22,14 @@
      * @param post 宀椾綅淇℃伅
      * @return 宀椾綅鍒楄〃
      */
-    public List<SysPost> selectPostList(SysPost post);
+    List<SysPost> selectPostList(SysPost post);
 
     /**
      * 鏌ヨ鎵�鏈夊矖浣�
      *
      * @return 宀椾綅鍒楄〃
      */
-    public List<SysPost> selectPostAll();
+    List<SysPost> selectPostAll();
 
     /**
      * 閫氳繃宀椾綅ID鏌ヨ宀椾綅淇℃伅
@@ -37,7 +37,7 @@
      * @param postId 宀椾綅ID
      * @return 瑙掕壊瀵硅薄淇℃伅
      */
-    public SysPost selectPostById(Long postId);
+    SysPost selectPostById(Long postId);
 
     /**
      * 鏍规嵁鐢ㄦ埛ID鑾峰彇宀椾綅閫夋嫨妗嗗垪琛�
@@ -45,7 +45,7 @@
      * @param userId 鐢ㄦ埛ID
      * @return 閫変腑宀椾綅ID鍒楄〃
      */
-    public List<Integer> selectPostListByUserId(Long userId);
+    List<Long> selectPostListByUserId(Long userId);
 
     /**
      * 鏍¢獙宀椾綅鍚嶇О
@@ -53,7 +53,7 @@
      * @param post 宀椾綅淇℃伅
      * @return 缁撴灉
      */
-    public String checkPostNameUnique(SysPost post);
+    String checkPostNameUnique(SysPost post);
 
     /**
      * 鏍¢獙宀椾綅缂栫爜
@@ -61,7 +61,7 @@
      * @param post 宀椾綅淇℃伅
      * @return 缁撴灉
      */
-    public String checkPostCodeUnique(SysPost post);
+    String checkPostCodeUnique(SysPost post);
 
     /**
      * 閫氳繃宀椾綅ID鏌ヨ宀椾綅浣跨敤鏁伴噺
@@ -69,7 +69,7 @@
      * @param postId 宀椾綅ID
      * @return 缁撴灉
      */
-    public int countUserPostById(Long postId);
+    long countUserPostById(Long postId);
 
     /**
      * 鍒犻櫎宀椾綅淇℃伅
@@ -77,16 +77,15 @@
      * @param postId 宀椾綅ID
      * @return 缁撴灉
      */
-    public int deletePostById(Long postId);
+    int deletePostById(Long postId);
 
     /**
      * 鎵归噺鍒犻櫎宀椾綅淇℃伅
      *
      * @param postIds 闇�瑕佸垹闄ょ殑宀椾綅ID
      * @return 缁撴灉
-     * @throws Exception 寮傚父
      */
-    public int deletePostByIds(Long[] postIds);
+    int deletePostByIds(Long[] postIds);
 
     /**
      * 鏂板淇濆瓨宀椾綅淇℃伅
@@ -94,7 +93,7 @@
      * @param post 宀椾綅淇℃伅
      * @return 缁撴灉
      */
-    public int insertPost(SysPost post);
+    int insertPost(SysPost post);
 
     /**
      * 淇敼淇濆瓨宀椾綅淇℃伅
@@ -102,5 +101,5 @@
      * @param post 宀椾綅淇℃伅
      * @return 缁撴灉
      */
-    public int updatePost(SysPost post);
+    int updatePost(SysPost post);
 }

--
Gitblit v1.9.3