开始制作 vue 页面的模板

This commit is contained in:
YunaiV
2021-02-11 11:11:40 +08:00
parent 0d55ca747c
commit 77bb57a2ee
5 changed files with 551 additions and 1047 deletions

View File

@ -10,6 +10,7 @@ import org.springframework.boot.test.context.SpringBootTest;
import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
@SpringBootTest(classes = TestApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class ToolCodegenEngineTest {
@ -24,9 +25,10 @@ public class ToolCodegenEngineTest {
@Test
public void testExecute() {
ToolCodegenTableDO table = codegenTableMapper.selectById(14);
ToolCodegenTableDO table = codegenTableMapper.selectById(10);
List<ToolCodegenColumnDO> columns = codegenColumnMapper.selectListByTableId(table.getId());
codegenEngine.execute(table, columns);
Map<String, String> result = codegenEngine.execute(table, columns);
System.out.println(result.get("vue/views/system/test/index.vue"));
}
}