IGenTableService.java 3.0 KB

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