{"componentChunkName":"component---src-templates-tutorial-js","path":"/zh/tutorial/menu/","result":{"data":{"markdownRemark":{"html":"<h2 id=\"menu\"><a href=\"#menu\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>menu</h2>\n<h3 id=\"uri\"><a href=\"#uri\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>URI</h3>\n<p><code class=\"gatsby-code-text\">http://{server}:{port}/imanager/dashboard/web/api/appset/menu</code></p>\n<h3 id=\"支持的方法\"><a href=\"#%E6%94%AF%E6%8C%81%E7%9A%84%E6%96%B9%E6%B3%95\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>支持的方法</h3>\n<p>GET</p>\n<h3 id=\"父资源\"><a href=\"#%E7%88%B6%E8%B5%84%E6%BA%90\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>父资源</h3>\n<p>appset</p>\n<h3 id=\"介绍\"><a href=\"#%E4%BB%8B%E7%BB%8D\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>介绍</h3>\n<p>通过API获取主页菜单。</p>\n<p>支持的表述格式：JSON</p>\n<h3 id=\"http-请求方法\"><a href=\"#http-%E8%AF%B7%E6%B1%82%E6%96%B9%E6%B3%95\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>HTTP 请求方法</h3>\n<p>对如下 URI 执行 HTTP 请求，以 json 输出格式为例加以说明，其中，<code class=\"gatsby-code-text\">{server}</code> 是服务器名，需要用服务器IP替换；<code class=\"gatsby-code-text\">{port}</code>是端口，需要用实际端口替换。</p>\n<p><code class=\"gatsby-code-text\">http://{server}:{port}/imanager/dashboard/web/api/appset/menu</code></p>\n<h4 id=\"get-请求\"><a href=\"#get-%E8%AF%B7%E6%B1%82\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>GET 请求</h4>\n<p>查看主页菜单</p>\n<h4 id=\"响应结构\"><a href=\"#%E5%93%8D%E5%BA%94%E7%BB%93%E6%9E%84\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>响应结构</h4>\n<p>返回主菜单，其中包含菜单的基本信息，由以下字段组成：</p>\n<table class=\"rtTable\" cellspacing=\"0\" width=\"80%\" align=\"center\">\n\t<col style=\"width: 15%;\" />\n\t<col style=\"width: 15%;\" />\n\t<col style=\"width: 70%;\" />\n\t<tr class=\"t1st\">\n\t\t<th>字段</th>\n\t\t<th>类型</th>\n\t\t<th>说明</th>\n\t</tr>\n\t<tr class=\"t2Row\">\n\t\t<td>name</td>\n\t\t<td>String</td>\n\t\t<td>菜单中GIS站点名称</td>\n\t</tr>\n\t<tr class=\"t1Row\">\n\t\t<td>group</td>\n\t\t<td>String</td>\n\t\t<td>菜单中GIS站点所属组名</td>\n\t</tr>\n\t<tr class=\"t2Row\">\n\t\t<td>items</td>\n\t\t<td>items</td>\n\t\t<td>各组所含GIS站点</td>\n\t</tr>\n</table>\n<p>其中，items表示各组中所包含子对象的详细信息，由以下字段组成：</p>\n<table class=\"rtTable\" cellspacing=\"0\" width=\"80%\" align=\"center\">\n\t<col style=\"width: 15%;\" />\n\t<col style=\"width: 15%;\" />\n\t<col style=\"width: 70%;\" />\n\t<tr class=\"t1st\">\n\t\t<th>字段</th>\n\t\t<th>类型</th>\n\t\t<th>说明</th>\n\t</tr>\n\t<tr class=\"t2Row\">\n\t\t<td>name</td>\n\t\t<td>String</td>\n\t\t<td>GIS站点名称</td>\n\t</tr>\n\t<tr class=\"t1Row\">\n\t\t<td>type</td>\n\t\t<td>String</td>\n\t\t<td>GIS站点类型</td>\n\t</tr>\n</table>\n<h4 id=\"响应示例\"><a href=\"#%E5%93%8D%E5%BA%94%E7%A4%BA%E4%BE%8B\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>响应示例</h4>\n<p>在登录的状态下，对 <code class=\"gatsby-code-text\">http://192.168.17.139:31100/imanager/dashboard/web/api/appset/menu</code> 执行GET请求，则返回的 json 格式的响应结果如下：</p>\n<div class=\"gatsby-highlight\" data-language=\"jsxon\"><pre class=\"gatsby-code-jsxon\"><code class=\"gatsby-code-jsxon\">[\n​    {\n​        &quot;name&quot;: &quot;GIS应用&quot;,\n​        &quot;group&quot;: &quot;gisappset&quot;,\n​        &quot;isCustom&quot;: false,\n​        &quot;items&quot;: [\n​            {\n​                &quot;name&quot;: &quot;GIS云套件&quot;,\n​                &quot;type&quot;: &quot;icloud-native&quot;,\n​                &quot;isCustom&quot;: false\n​            },\n​            {\n​                &quot;name&quot;: &quot;GIS服务器&quot;,\n​                &quot;type&quot;: &quot;iserver&quot;,\n​                &quot;isCustom&quot;: false\n​            },\n​            {\n​                &quot;name&quot;: &quot;GIS门户&quot;,\n​                &quot;type&quot;: &quot;iportal&quot;,\n​                &quot;isCustom&quot;: false\n​            },\n​            {\n​                &quot;name&quot;: &quot;GIS桌面&quot;,\n​                &quot;type&quot;: &quot;idesktop&quot;,\n​                &quot;isCustom&quot;: false\n​            },\n​            {\n​                &quot;name&quot;: &quot;GIS切图集群&quot;,\n​                &quot;type&quot;: &quot;tile-cluster&quot;,\n​                &quot;isCustom&quot;: false\n​            },\n​            {\n​                &quot;name&quot;: &quot;GIS站点&quot;,\n​                &quot;type&quot;: &quot;gissite&quot;,\n​                &quot;isCustom&quot;: false\n​            },\n​            {\n​                &quot;name&quot;: &quot;GIS大数据&quot;,\n​                &quot;type&quot;: &quot;hbase&quot;,\n​                &quot;isCustom&quot;: false\n​            },\n​            {\n​                &quot;name&quot;: &quot;空间数据科学环境&quot;,\n​                &quot;type&quot;: &quot;is-datascience&quot;,\n​                &quot;isCustom&quot;: false\n​            },\n​            {\n​                &quot;name&quot;: &quot;空间区块链&quot;,\n​                &quot;type&quot;: &quot;blockchain&quot;,\n​                &quot;isCustom&quot;: false\n​            }\n​        ]\n​    },\n​    {\n​        &quot;name&quot;: &quot;数据库&quot;,\n​        &quot;group&quot;: &quot;database&quot;,\n​        &quot;isCustom&quot;: false,\n​        &quot;items&quot;: [\n​            {\n​                &quot;name&quot;: &quot;Redis&quot;,\n​                &quot;type&quot;: &quot;redis&quot;,\n​                &quot;isCustom&quot;: false\n​            },\n​            {\n​                &quot;name&quot;: &quot;MySQL&quot;,\n​                &quot;type&quot;: &quot;mysql&quot;,\n​                &quot;isCustom&quot;: false\n​            },\n​            {\n​                &quot;name&quot;: &quot;PostGIS&quot;,\n​                &quot;type&quot;: &quot;postgis&quot;,\n​                &quot;isCustom&quot;: false\n​            },\n​            {\n​                &quot;name&quot;: &quot;PostgreSQL&quot;,\n​                &quot;type&quot;: &quot;postgresql&quot;,\n​                &quot;isCustom&quot;: false\n​            },\n​            {\n​                &quot;name&quot;: &quot;Elasticsearch&quot;,\n​                &quot;type&quot;: &quot;elasticsearch&quot;,\n​                &quot;isCustom&quot;: false\n​            }\n​        ]\n​    }\n]</code></pre></div>","frontmatter":{"title":"开发文档","next":null,"prev":null},"fields":{"path":"content/tutorial/menu.zh.md","slug":"/zh/tutorial/menu/","langKey":"zh"}}},"pageContext":{"slug":"/zh/tutorial/menu/"}}}