diff --git a/App/Views/blog/template/tools.html b/App/Views/blog/template/tools.html index e046da8..112f624 100644 --- a/App/Views/blog/template/tools.html +++ b/App/Views/blog/template/tools.html @@ -107,6 +107,23 @@ function on_click() { var str = create + update + get + batchget + deletetext ;// $('#out').text(str); +} +function on_click_ddl(){ + console.log(JSON.stringify($("#ddl").val())) + $.ajax({ + type:"post", + url:"https://www.testingcloud.club/sapi/openapi/ddl2orm", + contentType: "application/json", + async: false, + data :JSON.stringify({ + data:$("#ddl").val() + }), + success: function(result) { + $('#gencode').text(result.Data); + }, + dataType:"json" + }, +); }
@@ -114,6 +131,7 @@ function on_click() {
@@ -121,6 +139,7 @@ function on_click() {

gin接口代码CURD生成工具

+
@@ -162,7 +181,33 @@ function on_click() {
+
+

+ ddl2sql +

+
+
+ 输入ddl: +
+ +
+
+
+ 输出代码: +
+ +
+ +
+
+ +
+
+ +