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