mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-12-26 22:41:15 +08:00
feat: opendb-admin-menus
This commit is contained in:
parent
1562b0440e
commit
d852532203
60
collection/opendb-admin-menus/collection.json
Normal file
60
collection/opendb-admin-menus/collection.json
Normal 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
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
17
collection/opendb-admin-menus/package.json
Normal file
17
collection/opendb-admin-menus/package.json
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
3
database/opendb-admin/db_init.json
Normal file
3
database/opendb-admin/db_init.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"opendb-admin-menus": {}
|
||||
}
|
10
database/opendb-admin/package.json
Normal file
10
database/opendb-admin/package.json
Normal 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"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user