中国算力平台算力登记系统2.0
yanzhaofeige
2024-09-30 3c4fee1db116c11d4f04727cfe076d7c94daeaf2
commit | author | age
43dc29 1 package com.odcc.cpzidc.generator.service;
Y 2
3 import java.util.List;
4 import java.util.Map;
5 import com.odcc.cpzidc.generator.domain.GenTable;
6
7 /**
8  * 业务 服务层
9  * 
10  * @author ruoyi
11  */
12 public interface IGenTableService
13 {
14     /**
15      * 查询业务列表
16      * 
17      * @param genTable 业务信息
18      * @return 业务集合
19      */
20     public List<GenTable> selectGenTableList(GenTable genTable);
21
22     /**
23      * 查询据库列表
24      * 
25      * @param genTable 业务信息
26      * @return 数据库表集合
27      */
28     public List<GenTable> selectDbTableList(GenTable genTable);
29
30     /**
31      * 查询据库列表
32      * 
33      * @param tableNames 表名称组
34      * @return 数据库表集合
35      */
36     public List<GenTable> selectDbTableListByNames(String[] tableNames);
37
38     /**
39      * 查询所有表信息
40      * 
41      * @return 表信息集合
42      */
43     public List<GenTable> selectGenTableAll();
44
45     /**
46      * 查询业务信息
47      * 
48      * @param id 业务ID
49      * @return 业务信息
50      */
51     public GenTable selectGenTableById(Long id);
52
53     /**
54      * 修改业务
55      * 
56      * @param genTable 业务信息
57      * @return 结果
58      */
59     public void updateGenTable(GenTable genTable);
60
61     /**
62      * 删除业务信息
63      * 
64      * @param tableIds 需要删除的表数据ID
65      * @return 结果
66      */
67     public void deleteGenTableByIds(Long[] tableIds);
68
69     /**
70      * 创建表
71      *
72      * @param sql 创建表语句
73      * @return 结果
74      */
75     public boolean createTable(String sql);
76
77     /**
78      * 导入表结构
79      *
80      * @param tableList 导入表列表
81      * @param operName 操作人员
82      */
83     public void importGenTable(List<GenTable> tableList, String operName);
84
85     /**
86      * 预览代码
87      * 
88      * @param tableId 表编号
89      * @return 预览数据列表
90      */
91     public Map<String, String> previewCode(Long tableId);
92
93     /**
94      * 生成代码(下载方式)
95      * 
96      * @param tableName 表名称
97      * @return 数据
98      */
99     public byte[] downloadCode(String tableName);
100
101     /**
102      * 生成代码(自定义路径)
103      * 
104      * @param tableName 表名称
105      * @return 数据
106      */
107     public void generatorCode(String tableName);
108
109     /**
110      * 同步数据库
111      * 
112      * @param tableName 表名称
113      */
114     public void synchDb(String tableName);
115
116     /**
117      * 批量生成代码(下载方式)
118      * 
119      * @param tableNames 表数组
120      * @return 数据
121      */
122     public byte[] downloadCode(String[] tableNames);
123
124     /**
125      * 修改保存参数校验
126      * 
127      * @param genTable 业务信息
128      */
129     public void validateEdit(GenTable genTable);
130 }