|
@@ -213,6 +213,33 @@ public class FreeMarkerGeneratorTest {
|
|
|
params.setDs(ds);
|
|
|
|
|
|
|
|
|
+ IApiGeneratorService apiGeneratorService = new ApiGeneratorServiceImpl();
|
|
|
+
|
|
|
+ apiGeneratorService.generateCodes(params);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Test
|
|
|
+ public void gcLiteFlowTest() throws IOException {
|
|
|
+ List<TableConfig> tableConfigs = new ArrayList<>();
|
|
|
+ TableConfig mainTable = new TableConfig();
|
|
|
+ mainTable.setTableName("xjr_liteflow_chain");
|
|
|
+ mainTable.setIsMain(true);
|
|
|
+ mainTable.setPkField(GlobalConstant.DEFAULT_PK);
|
|
|
+ mainTable.setPkType(GlobalConstant.DEFAULT_PK_TYPE);
|
|
|
+
|
|
|
+ tableConfigs.add(mainTable);
|
|
|
+
|
|
|
+ ApiGenerateCodesDto params = new ApiGenerateCodesDto();
|
|
|
+ params.setAuthor("fanxp");
|
|
|
+ params.setPackageName("liteflow");
|
|
|
+ params.setTableConfigs(tableConfigs);
|
|
|
+ params.setPage(false);
|
|
|
+ params.setImport(false);
|
|
|
+ params.setExport(false);
|
|
|
+ params.setOutMainDir(false);
|
|
|
+ params.setDs(ds);
|
|
|
+
|
|
|
+
|
|
|
IApiGeneratorService apiGeneratorService = new ApiGeneratorServiceImpl();
|
|
|
|
|
|
apiGeneratorService.generateCodes(params);
|