{
  "properties" : { },
  "id" : "6db309d3d6d0461c97419641849a99b4",
  "script" : null,
  "groupId" : "f2538e0f370a4cabab0ae920f5e77ae7",
  "name" : "查出所有表",
  "createTime" : null,
  "updateTime" : 1648389273779,
  "lock" : null,
  "createBy" : null,
  "updateBy" : null,
  "path" : "/tables",
  "method" : "GET",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"code\": 200,\n    \"message\": \"success\",\n    \"data\": [{\n        \"label\": \"magic_backup_record_v2()\",\n        \"value\": \"magic_backup_record_v2\"\n    }, {\n        \"label\": \"sys_dict(字典表)\",\n        \"value\": \"sys_dict\"\n    }, {\n        \"label\": \"sys_dict_items(字典项表)\",\n        \"value\": \"sys_dict_items\"\n    }, {\n        \"label\": \"sys_file(文件表)\",\n        \"value\": \"sys_file\"\n    }, {\n        \"label\": \"sys_gen_info(生成表信息)\",\n        \"value\": \"sys_gen_info\"\n    }, {\n        \"label\": \"sys_gen_test()\",\n        \"value\": \"sys_gen_test\"\n    }, {\n        \"label\": \"sys_login_log()\",\n        \"value\": \"sys_login_log\"\n    }, {\n        \"label\": \"sys_menu(菜单表)\",\n        \"value\": \"sys_menu\"\n    }, {\n        \"label\": \"sys_office(组织机构表)\",\n        \"value\": \"sys_office\"\n    }, {\n        \"label\": \"sys_oper_log(操作日志)\",\n        \"value\": \"sys_oper_log\"\n    }, {\n        \"label\": \"sys_permission_code(权限code表)\",\n        \"value\": \"sys_permission_code\"\n    }, {\n        \"label\": \"sys_role(角色表)\",\n        \"value\": \"sys_role\"\n    }, {\n        \"label\": \"sys_role_menu(角色和菜单关联表)\",\n        \"value\": \"sys_role_menu\"\n    }, {\n        \"label\": \"sys_role_office(用户组织机构关联表)\",\n        \"value\": \"sys_role_office\"\n    }, {\n        \"label\": \"sys_test_data()\",\n        \"value\": \"sys_test_data\"\n    }, {\n        \"label\": \"sys_user(用户表)\",\n        \"value\": \"sys_user\"\n    }, {\n        \"label\": \"sys_user_code(用户权限code关联表)\",\n        \"value\": \"sys_user_code\"\n    }, {\n        \"label\": \"sys_user_role(用户与角色关联表)\",\n        \"value\": \"sys_user_role\"\n    }],\n    \"timestamp\": 1648372075872,\n    \"executeTime\": 24\n}",
  "description" : null,
  "requestBodyDefinition" : null,
  "responseBodyDefinition" : {
    "name" : "",
    "value" : "",
    "description" : "",
    "required" : false,
    "dataType" : "Object",
    "type" : null,
    "defaultValue" : null,
    "validateType" : "",
    "error" : "",
    "expression" : "",
    "children" : [ {
      "name" : "code",
      "value" : "200",
      "description" : "",
      "required" : false,
      "dataType" : "Integer",
      "type" : null,
      "defaultValue" : null,
      "validateType" : "",
      "error" : "",
      "expression" : "",
      "children" : [ ]
    }, {
      "name" : "message",
      "value" : "success",
      "description" : "",
      "required" : false,
      "dataType" : "String",
      "type" : null,
      "defaultValue" : null,
      "validateType" : "",
      "error" : "",
      "expression" : "",
      "children" : [ ]
    }, {
      "name" : "data",
      "value" : "",
      "description" : "",
      "required" : false,
      "dataType" : "Object",
      "type" : null,
      "defaultValue" : null,
      "validateType" : "",
      "error" : "",
      "expression" : "",
      "children" : [ {
        "name" : "",
        "value" : "",
        "description" : "",
        "required" : false,
        "dataType" : "Object",
        "type" : null,
        "defaultValue" : null,
        "validateType" : "",
        "error" : "",
        "expression" : "",
        "children" : [ {
          "name" : "label",
          "value" : "magic_backup_record_v2()",
          "description" : "",
          "required" : false,
          "dataType" : "String",
          "type" : null,
          "defaultValue" : null,
          "validateType" : "",
          "error" : "",
          "expression" : "",
          "children" : [ ]
        }, {
          "name" : "value",
          "value" : "magic_backup_record_v2",
          "description" : "",
          "required" : false,
          "dataType" : "String",
          "type" : null,
          "defaultValue" : null,
          "validateType" : "",
          "error" : "",
          "expression" : "",
          "children" : [ ]
        } ]
      } ]
    }, {
      "name" : "timestamp",
      "value" : "1648372075872",
      "description" : "",
      "required" : false,
      "dataType" : "Long",
      "type" : null,
      "defaultValue" : null,
      "validateType" : "",
      "error" : "",
      "expression" : "",
      "children" : [ ]
    }, {
      "name" : "executeTime",
      "value" : "24",
      "description" : "",
      "required" : false,
      "dataType" : "Object",
      "type" : null,
      "defaultValue" : null,
      "validateType" : "",
      "error" : "",
      "expression" : "",
      "children" : [ ]
    } ]
  }
}
================================
return db.select("""
    select table_name, table_comment from information_schema.tables where table_schema = database()
""").map(it => { label: it.tableName + `(${it.tableComment})`, value: it.tableName  })