From 618f7e78a1a44e6333e8829dfa023facabe70348 Mon Sep 17 00:00:00 2001 From: handongxun Date: Fri, 28 Aug 2020 15:06:12 +0800 Subject: [PATCH] add collection opendb-banner --- collection/opendb-banner/collection.json | 46 ++++++++++++++++++++++++ collection/opendb-banner/package.json | 17 +++++++++ 2 files changed, 63 insertions(+) create mode 100644 collection/opendb-banner/collection.json create mode 100644 collection/opendb-banner/package.json diff --git a/collection/opendb-banner/collection.json b/collection/opendb-banner/collection.json new file mode 100644 index 0000000..4336e9a --- /dev/null +++ b/collection/opendb-banner/collection.json @@ -0,0 +1,46 @@ +{ + "schema": { + "bsonType": "object", + "required": ["category_id", "image_url"], + "properties": { + "_id": { + "description": "ID,系统自动生成" + }, + "category_id": { + "bsonType": "string", + "description": "分类" + }, + "title": { + "bsonType": "string", + "description": "标题" + }, + "description": { + "bsonType": "string", + "description": "描述" + }, + "image_url": { + "bsonType": "string", + "description": "图片url" + }, + "sort": { + "bsonType": "int", + "description": "排序" + }, + "status": { + "bsonType": "int", + "minimum": 0, + "maximum": 1, + "description": "状态: 0 禁用,1 正常" + }, + "open_type": { + "bsonType": "string", + "description": "点击动作" + }, + "open_url": { + "bsonType": "string", + "description": "点击跳转目标" + } + } + }, + "index": [] +} diff --git a/collection/opendb-banner/package.json b/collection/opendb-banner/package.json new file mode 100644 index 0000000..3e74697 --- /dev/null +++ b/collection/opendb-banner/package.json @@ -0,0 +1,17 @@ +{ + "name": "@opendb/opendb-banner", + "version": "0.0.1", + "description": "opendb-banner", + "keywords": ["banner"], + "opendb": { + "title": "Banner", + "type": "collection", + "contributors": [ + { + "name": "DCloud", + "email": "", + "homepage": "https://gitee.com/dcloud/opendb" + } + ] + } +}