Menu Tree
is used operator get menu tree
Request address
- API Address (requestURI) : /openapi/v1/user/query/uid
Request parameters
Parameter name | Type | Requirement | Description |
---|---|---|---|
uid | Long | R | UID of the current logged-in administrator |
subSystemCode | String | R | Subsystem code |
Sample request
{
"uid": 34,
"subSystemCode": "000002"
}
Response parameters
Parameter name | Type | Requirement | Description |
---|---|---|---|
id | Long | O | Menu ID |
menuName | String | O | Menu name |
menuKey | String | O | Unique identifier for the menu |
parentId | Long | O | Parent menu ID |
url | String | O | Action request address |
menuType | Integer | O | Type: 1 for menu, 2 for button operation |
icon | String | O | Small icon |
display | Byte | O | Whether to display: 0 for no, 1 for yes |
menuSequence | Integer | O | Display order |
checked | Boolean | O | Whether selected, used in the menu tree in role details |
childrenMenu | List<SystemMenuDto> | O | Child menu objects |
Sample response
{
"code": "200",
"msg": "ok",
"data": [
{
"id": 107,
"menuName": "数据看板",
"menuKey": "dataDashboards",
"parentId": 0,
"url": "#",
"menuType": 1,
"icon": null,
"display": 1,
"menuSequence": 0,
"checked": null,
"childrenMenu": []
}
]
}