菜单

菜单属性名

属性名必含类型说明

id

int

菜单 id

title

string

菜单栏标题

description

string

描述

count

int

数量

items

array

菜单项

items>>id

int

id

items>>title

string

菜单标题

items>>object

string

关联对象

items>>object_id

url

关联对象id

items>>url

string

访问地址

items>>path

string

相对路径

items>>menu_order

string

排序

items>>children

array

子菜单

所需权限:read_content

GET openapi/2021-08/menus/{id}

{
    "id": 1,
    "title": "我是菜单1",
    "description": "Home,Search,All Collections",
    "name": "我是菜单1",
    "count": 3,
    "items": [
        {
            "id": 1,
            "title": "Home",
            "object": "home",
            "object_id": 1,
            "url": "/",
            "path": "/",
            "menu_order": 1,
            "children": []
        },
        {
            "id": 2,
            "title": "Search",
            "object": "search",
            "object_id": 2,
            "url": "/search",
            "path": "/search",
            "menu_order": 2,
            "children": []
        },
        {
            "id": 3,
            "title": "All Collections",
            "object": "all_collections",
            "object_id": 3,
            "url": "/collections",
            "path": "/collections",
            "menu_order": 3,
            "children": []
        }
    ]
}

Last updated