From 17b90f8381d715ba45fbce080d80c88250c172e0 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子li <15040126243@163.com>
Date: 星期五, 17 九月 2021 16:20:26 +0800
Subject: [PATCH] add 增加 限流演示案例
---
ruoyi-system/src/main/java/com/ruoyi/system/service/ISysPostService.java | 38 ++++++++++++++++++++++----------------
1 files changed, 22 insertions(+), 16 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 aab216d..3f9db85 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,18 +1,24 @@
package com.ruoyi.system.service;
-import java.util.List;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.SysPost;
+
+import java.util.List;
/**
* 宀椾綅淇℃伅 鏈嶅姟灞�
- *
+ *
* @author ruoyi
*/
-public interface ISysPostService
-{
+public interface ISysPostService extends IService<SysPost> {
+
+
+ TableDataInfo<SysPost> selectPagePostList(SysPost post);
+
/**
* 鏌ヨ宀椾綅淇℃伅闆嗗悎
- *
+ *
* @param post 宀椾綅淇℃伅
* @return 宀椾綅鍒楄〃
*/
@@ -20,14 +26,14 @@
/**
* 鏌ヨ鎵�鏈夊矖浣�
- *
+ *
* @return 宀椾綅鍒楄〃
*/
public List<SysPost> selectPostAll();
/**
* 閫氳繃宀椾綅ID鏌ヨ宀椾綅淇℃伅
- *
+ *
* @param postId 宀椾綅ID
* @return 瑙掕壊瀵硅薄淇℃伅
*/
@@ -35,7 +41,7 @@
/**
* 鏍规嵁鐢ㄦ埛ID鑾峰彇宀椾綅閫夋嫨妗嗗垪琛�
- *
+ *
* @param userId 鐢ㄦ埛ID
* @return 閫変腑宀椾綅ID鍒楄〃
*/
@@ -43,7 +49,7 @@
/**
* 鏍¢獙宀椾綅鍚嶇О
- *
+ *
* @param post 宀椾綅淇℃伅
* @return 缁撴灉
*/
@@ -51,7 +57,7 @@
/**
* 鏍¢獙宀椾綅缂栫爜
- *
+ *
* @param post 宀椾綅淇℃伅
* @return 缁撴灉
*/
@@ -59,15 +65,15 @@
/**
* 閫氳繃宀椾綅ID鏌ヨ宀椾綅浣跨敤鏁伴噺
- *
+ *
* @param postId 宀椾綅ID
* @return 缁撴灉
*/
- public int countUserPostById(Long postId);
+ public long countUserPostById(Long postId);
/**
* 鍒犻櫎宀椾綅淇℃伅
- *
+ *
* @param postId 宀椾綅ID
* @return 缁撴灉
*/
@@ -75,7 +81,7 @@
/**
* 鎵归噺鍒犻櫎宀椾綅淇℃伅
- *
+ *
* @param postIds 闇�瑕佸垹闄ょ殑宀椾綅ID
* @return 缁撴灉
* @throws Exception 寮傚父
@@ -84,7 +90,7 @@
/**
* 鏂板淇濆瓨宀椾綅淇℃伅
- *
+ *
* @param post 宀椾綅淇℃伅
* @return 缁撴灉
*/
@@ -92,7 +98,7 @@
/**
* 淇敼淇濆瓨宀椾綅淇℃伅
- *
+ *
* @param post 宀椾綅淇℃伅
* @return 缁撴灉
*/
--
Gitblit v1.9.3