From eb1047a149112cd6751808b326cd449345453174 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子Li <15040126243@163.com>
Date: 星期日, 17 四月 2022 21:51:41 +0800
Subject: [PATCH] update 优化登录失败相关部分代码结构
---
ruoyi-generator/src/main/java/com/ruoyi/generator/service/IGenTableService.java | 47 +++++++++++++++++++++++++----------------------
1 files changed, 25 insertions(+), 22 deletions(-)
diff --git a/ruoyi-generator/src/main/java/com/ruoyi/generator/service/IGenTableService.java b/ruoyi-generator/src/main/java/com/ruoyi/generator/service/IGenTableService.java
index 9903eca..c432d06 100644
--- a/ruoyi-generator/src/main/java/com/ruoyi/generator/service/IGenTableService.java
+++ b/ruoyi-generator/src/main/java/com/ruoyi/generator/service/IGenTableService.java
@@ -1,8 +1,9 @@
package com.ruoyi.generator.service;
-import com.baomidou.mybatisplus.extension.service.IService;
+import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.generator.domain.GenTable;
+import com.ruoyi.generator.domain.GenTableColumn;
import java.util.List;
import java.util.Map;
@@ -10,15 +11,17 @@
/**
* 涓氬姟 鏈嶅姟灞�
*
- * @author ruoyi
+ * @author Lion Li
*/
-public interface IGenTableService extends IService<GenTable> {
+public interface IGenTableService {
-
- TableDataInfo<GenTable> selectPageGenTableList(GenTable genTable);
-
-
- TableDataInfo<GenTable> selectPageDbTableList(GenTable genTable);
+ /**
+ * 鏌ヨ涓氬姟瀛楁鍒楄〃
+ *
+ * @param tableId 涓氬姟瀛楁缂栧彿
+ * @return 涓氬姟瀛楁闆嗗悎
+ */
+ List<GenTableColumn> selectGenTableColumnListByTableId(Long tableId);
/**
* 鏌ヨ涓氬姟鍒楄〃
@@ -26,7 +29,7 @@
* @param genTable 涓氬姟淇℃伅
* @return 涓氬姟闆嗗悎
*/
- public List<GenTable> selectGenTableList(GenTable genTable);
+ TableDataInfo<GenTable> selectPageGenTableList(GenTable genTable, PageQuery pageQuery);
/**
* 鏌ヨ鎹簱鍒楄〃
@@ -34,7 +37,7 @@
* @param genTable 涓氬姟淇℃伅
* @return 鏁版嵁搴撹〃闆嗗悎
*/
- public List<GenTable> selectDbTableList(GenTable genTable);
+ TableDataInfo<GenTable> selectPageDbTableList(GenTable genTable, PageQuery pageQuery);
/**
* 鏌ヨ鎹簱鍒楄〃
@@ -42,14 +45,14 @@
* @param tableNames 琛ㄥ悕绉扮粍
* @return 鏁版嵁搴撹〃闆嗗悎
*/
- public List<GenTable> selectDbTableListByNames(String[] tableNames);
+ List<GenTable> selectDbTableListByNames(String[] tableNames);
/**
* 鏌ヨ鎵�鏈夎〃淇℃伅
*
* @return 琛ㄤ俊鎭泦鍚�
*/
- public List<GenTable> selectGenTableAll();
+ List<GenTable> selectGenTableAll();
/**
* 鏌ヨ涓氬姟淇℃伅
@@ -57,7 +60,7 @@
* @param id 涓氬姟ID
* @return 涓氬姟淇℃伅
*/
- public GenTable selectGenTableById(Long id);
+ GenTable selectGenTableById(Long id);
/**
* 淇敼涓氬姟
@@ -65,7 +68,7 @@
* @param genTable 涓氬姟淇℃伅
* @return 缁撴灉
*/
- public void updateGenTable(GenTable genTable);
+ void updateGenTable(GenTable genTable);
/**
* 鍒犻櫎涓氬姟淇℃伅
@@ -73,14 +76,14 @@
* @param tableIds 闇�瑕佸垹闄ょ殑琛ㄦ暟鎹甀D
* @return 缁撴灉
*/
- public void deleteGenTableByIds(Long[] tableIds);
+ void deleteGenTableByIds(Long[] tableIds);
/**
* 瀵煎叆琛ㄧ粨鏋�
*
* @param tableList 瀵煎叆琛ㄥ垪琛�
*/
- public void importGenTable(List<GenTable> tableList);
+ void importGenTable(List<GenTable> tableList);
/**
* 棰勮浠g爜
@@ -88,7 +91,7 @@
* @param tableId 琛ㄧ紪鍙�
* @return 棰勮鏁版嵁鍒楄〃
*/
- public Map<String, String> previewCode(Long tableId);
+ Map<String, String> previewCode(Long tableId);
/**
* 鐢熸垚浠g爜锛堜笅杞芥柟寮忥級
@@ -96,7 +99,7 @@
* @param tableName 琛ㄥ悕绉�
* @return 鏁版嵁
*/
- public byte[] downloadCode(String tableName);
+ byte[] downloadCode(String tableName);
/**
* 鐢熸垚浠g爜锛堣嚜瀹氫箟璺緞锛�
@@ -104,14 +107,14 @@
* @param tableName 琛ㄥ悕绉�
* @return 鏁版嵁
*/
- public void generatorCode(String tableName);
+ void generatorCode(String tableName);
/**
* 鍚屾鏁版嵁搴�
*
* @param tableName 琛ㄥ悕绉�
*/
- public void synchDb(String tableName);
+ void synchDb(String tableName);
/**
* 鎵归噺鐢熸垚浠g爜锛堜笅杞芥柟寮忥級
@@ -119,12 +122,12 @@
* @param tableNames 琛ㄦ暟缁�
* @return 鏁版嵁
*/
- public byte[] downloadCode(String[] tableNames);
+ byte[] downloadCode(String[] tableNames);
/**
* 淇敼淇濆瓨鍙傛暟鏍¢獙
*
* @param genTable 涓氬姟淇℃伅
*/
- public void validateEdit(GenTable genTable);
+ void validateEdit(GenTable genTable);
}
--
Gitblit v1.9.3