api_path 必填,需绑定后端接口地址。Authorization: ********************{
"name": "用户管理",
"type": 2,
"parent_id": 0,
"path": "/system/user",
"icon": "User",
"sort": 1,
"status": 1,
"remark": "用户管理页面"
}curl --location '/admin/menu/add' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "用户管理",
"type": 2,
"parent_id": 0,
"path": "/system/user",
"icon": "User",
"sort": 1,
"status": 1,
"remark": "用户管理页面"
}'{
"code": 0,
"msg": "success",
"data": {
"id": 1,
"created_at": "2019-08-24T14:15:22.123Z",
"updated_at": "2019-08-24T14:15:22.123Z",
"name": "用户管理",
"type": 1,
"parent_id": 0,
"path": "/system/user",
"api_path": "POST:/admin/user/add",
"icon": "User",
"sort": 0,
"status": 1,
"remark": "string"
}
}