feat: opendb-admin-menus

This commit is contained in:
wangyaqi 2020-10-23 11:25:15 +08:00
parent 1562b0440e
commit d852532203
4 changed files with 90 additions and 0 deletions

View File

@ -0,0 +1,60 @@
{
"schema": {
"bsonType": "object",
"required": [
"name",
"url"
],
"properties": {
"_id": {
"description": "存储文档 ID系统自动生成"
},
"name": {
"bsonType": "string",
"description": "菜单名称"
},
"icon": {
"bsonType": "string",
"description": "菜单图标"
},
"url": {
"bsonType": "string",
"description": "菜单url"
},
"sort": {
"bsonType": "int",
"description": "菜单需要(越大越靠后)"
},
"parent_id": {
"bsonType": "string",
"description": "父级菜单Id"
},
"permission": {
"bsonType": "array",
"description": "菜单权限列表"
},
"status": {
"bsonType": "string",
"description": "菜单状态0禁用、1启用"
},
"create_date": {
"bsonType": "timestamp",
"description": "菜单创建时间"
}
}
},
"index": [
{
"IndexName": "permission",
"MgoKeySchema": {
"MgoIndexKeys": [
{
"Name": "permission",
"Direction": "1"
}
],
"MgoIsUnique": false
}
}
]
}

View File

@ -0,0 +1,17 @@
{
"name": "@opendb/opendb-admin-menus",
"version": "0.0.1",
"description": "opendb-admin-menus",
"keywords": ["opendb-admin", "菜单"],
"opendb": {
"title": "菜单",
"type": "collection",
"contributors": [
{
"name": "DCloud",
"email": "",
"homepage": "https://gitee.com/dcloud/opendb"
}
]
}
}

View File

@ -0,0 +1,3 @@
{
"opendb-admin-menus": {}
}

View File

@ -0,0 +1,10 @@
{
"name": "@opendb/opendb-amdin",
"version": "0.0.1",
"description": "opendb-amdin",
"keywords": ["opendb-amdin", "admin"],
"opendb": {
"type": "database",
"title": "opendb-amdin"
}
}