IGenTableService.java 2.8 KB

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