From d852532203181c0d28e2a28789d7509081e522f4 Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Fri, 23 Oct 2020 11:25:15 +0800 Subject: [PATCH] feat: opendb-admin-menus --- collection/opendb-admin-menus/collection.json | 60 +++++++++++++++++++ collection/opendb-admin-menus/package.json | 17 ++++++ database/opendb-admin/db_init.json | 3 + database/opendb-admin/package.json | 10 ++++ 4 files changed, 90 insertions(+) create mode 100644 collection/opendb-admin-menus/collection.json create mode 100644 collection/opendb-admin-menus/package.json create mode 100644 database/opendb-admin/db_init.json create mode 100644 database/opendb-admin/package.json diff --git a/collection/opendb-admin-menus/collection.json b/collection/opendb-admin-menus/collection.json new file mode 100644 index 0000000..61e8e40 --- /dev/null +++ b/collection/opendb-admin-menus/collection.json @@ -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 + } + } + ] +} \ No newline at end of file diff --git a/collection/opendb-admin-menus/package.json b/collection/opendb-admin-menus/package.json new file mode 100644 index 0000000..11d9939 --- /dev/null +++ b/collection/opendb-admin-menus/package.json @@ -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" + } + ] + } +} diff --git a/database/opendb-admin/db_init.json b/database/opendb-admin/db_init.json new file mode 100644 index 0000000..6da8e3d --- /dev/null +++ b/database/opendb-admin/db_init.json @@ -0,0 +1,3 @@ +{ + "opendb-admin-menus": {} +} diff --git a/database/opendb-admin/package.json b/database/opendb-admin/package.json new file mode 100644 index 0000000..c255eba --- /dev/null +++ b/database/opendb-admin/package.json @@ -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" + } +}