|
|
|
@ -123,7 +123,7 @@ public class SpringBootCallable implements Callable {
|
|
|
|
|
// System.out.println("生成模块:Manager");
|
|
|
|
|
// generateManager(new File(api.getAbsolutePath(), "mgr"), module, dataBase, option);
|
|
|
|
|
// System.out.println("生成模块:Requset");
|
|
|
|
|
// generateRequset(new File(api.getAbsolutePath(), "req"), module, dataBase, option);
|
|
|
|
|
// generateRequest(new File(api.getAbsolutePath(), "req"), module, dataBase, option);
|
|
|
|
|
// System.out.println("生成模块:Response");
|
|
|
|
|
// generateResponse(new File(api.getAbsolutePath(), "rsp"), module, dataBase, option);
|
|
|
|
|
// }
|
|
|
|
@ -142,7 +142,7 @@ public class SpringBootCallable implements Callable {
|
|
|
|
|
System.out.println("生成模块:Manager");
|
|
|
|
|
generateManager(new File(modulePath.getAbsolutePath(), "mgr"), module, dataBase, option);
|
|
|
|
|
System.out.println("生成模块:Requset");
|
|
|
|
|
generateRequset(new File(modulePath.getAbsolutePath(), "req"), module, dataBase, option);
|
|
|
|
|
generateRequest(new File(modulePath.getAbsolutePath(), "req"), module, dataBase, option);
|
|
|
|
|
System.out.println("生成模块:Response");
|
|
|
|
|
generateResponse(new File(modulePath.getAbsolutePath(), "rsp"), module, dataBase, option);
|
|
|
|
|
}
|
|
|
|
@ -396,12 +396,12 @@ public class SpringBootCallable implements Callable {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 生成Requset
|
|
|
|
|
* 生成Request
|
|
|
|
|
*
|
|
|
|
|
* @param root
|
|
|
|
|
* @param md
|
|
|
|
|
*/
|
|
|
|
|
public void generateRequset(File root, Module md, DataBase dataBase, String option) {
|
|
|
|
|
public void generateRequest(File root, Module md, DataBase dataBase, String option) {
|
|
|
|
|
if (!root.exists()) {
|
|
|
|
|
root.mkdirs();
|
|
|
|
|
} else {
|
|
|
|
|