Java web开发项目设计


MenuController

<h5>简要描述</h5> <ul> <li>系统主页接口</li> </ul> <h5>请求URL</h5> <ul> <li><code>http://localhost:8080/api/menu</code></li> </ul> <h5>请求方式</h5> <ul> <li>GET </li> </ul> <h5>参数</h5> <p>无</p> <h5>返回示例</h5> <pre><code>[     {         "id":2,         "url":"/",         "path":"/home",         "component":"Home",         "name":"学生管理",         "iconCls":"fa fa-graduation-cap",         "meta":{             "keepAlive":null,             "requireAuth":true         },         "parentId":1,         "enabled":true,         "children":[             {                 "id":7,                 "url":null,                 "path":"/student/profile",                 "component":"StudentProfile",                 "name":"学生资料",                 "iconCls":null,                 "meta":{                     "keepAlive":null,                     "requireAuth":true                 },                 "parentId":2,                 "enabled":true,                 "children":null,                 "roles":null             }         ],         "roles":null     },     {         "id":3,         "url":"/",         "path":"/home",         "component":"Home",         "name":"楼层管理",         "iconCls":"fa fa-building",         "meta":{             "keepAlive":null,             "requireAuth":true         },         "parentId":1,         "enabled":true,         "children":[             {                 "id":8,                 "url":null,                 "path":"/building/info",                 "component":"BuildingInfo",                 "name":"楼层信息",                 "iconCls":null,                 "meta":{                     "keepAlive":null,                     "requireAuth":true                 },                 "parentId":3,                 "enabled":true,                 "children":null,                 "roles":null             }         ],         "roles":null     },     {         "id":4,         "url":"/",         "path":"/home",         "component":"Home",         "name":"宿舍管理",         "iconCls":"fa fa-hotel",         "meta":{             "keepAlive":null,             "requireAuth":true         },         "parentId":1,         "enabled":true,         "children":[             {                 "id":9,                 "url":null,                 "path":"/dorm/details",                 "component":"DormDetails",                 "name":"宿舍详情",                 "iconCls":null,                 "meta":{                     "keepAlive":null,                     "requireAuth":true                 },                 "parentId":4,                 "enabled":true,                 "children":null,                 "roles":null             }         ],         "roles":null     },     {         "id":5,         "url":"/",         "path":"/home",         "component":"Home",         "name":"用户管理",         "iconCls":"fa fa-users",         "meta":{             "keepAlive":null,             "requireAuth":true         },         "parentId":1,         "enabled":true,         "children":[             {                 "id":10,                 "url":null,                 "path":"/user/info",                 "component":"UserInfo",                 "name":"用户信息",                 "iconCls":null,                 "meta":{                     "keepAlive":null,                     "requireAuth":true                 },                 "parentId":5,                 "enabled":true,                 "children":null,                 "roles":null             }         ],         "roles":null     },     {         "id":6,         "url":"/",         "path":"/home",         "component":"Home",         "name":"系统管理",         "iconCls":"fa fa-wrench",         "meta":{             "keepAlive":null,             "requireAuth":true         },         "parentId":1,         "enabled":true,         "children":[             {                 "id":11,                 "url":null,                 "path":"/system/profile",                 "component":"SystemProfile",                 "name":"系统资料",                 "iconCls":null,                 "meta":{                     "keepAlive":null,                     "requireAuth":true                 },                 "parentId":6,                 "enabled":true,                 "children":null,                 "roles":null             }         ],         "roles":null     } ]</code></pre> <h5>返回参数说明</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">id</td> <td style="text-align: left;">int</td> <td>功能号</td> </tr> <tr> <td style="text-align: left;">url</td> <td style="text-align: left;">String</td> <td>统一资源定位符</td> </tr> <tr> <td style="text-align: left;">path</td> <td style="text-align: left;">String</td> <td>路径</td> </tr> <tr> <td style="text-align: left;">component</td> <td style="text-align: left;">String</td> <td>组件</td> </tr> <tr> <td style="text-align: left;">name</td> <td style="text-align: left;">String</td> <td>功能名称</td> </tr> <tr> <td style="text-align: left;">iconCls</td> <td style="text-align: left;">String</td> <td>图标</td> </tr> <tr> <td style="text-align: left;">parentId</td> <td style="text-align: left;">int</td> <td>上层功能Id</td> </tr> <tr> <td style="text-align: left;">children</td> <td style="text-align: left;">Object</td> <td>子功能</td> </tr> </tbody> </table> <h5>备注</h5> <ul> <li>更多返回错误代码请看首页的错误代码描述!</li> </ul> <hr />

页面列表

ITEM_HTML