{
  "label": "菜单列表",
  "version": "1.0.0",
  "description": "菜单列表",
  "nodes": [
    {
      "name": "menus",
      "process": "models.xiang.menu.get",
      "args": [
        {
          "select": [
            "id",
            "name",
            "icon",
            "parent",
            "path",
            "blocks",
            "visible_menu"
          ],
          "withs": {
            "children": {
              "query": {
                "limit": 2000,
                "select": [
                  "id",
                  "name",
                  "icon",
                  "parent",
                  "path",
                  "blocks",
                  "visible_menu"
                ]
              }
            }
          },
          "wheres": [
            { "column": "status", "value": "enabled" },
            { "column": "parent", "op": "null" }
          ],
          "limit": 200,
          "orders": [{ "column": "rank", "option": "asc" }]
        }
      ]
    }
  ],
  "output": "{{$res.menus}}"
}
