mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-09-20 03:23:03 +08:00
Compare commits
3 Commits
14fef2ff5c
...
46b610cc94
Author | SHA1 | Date | |
---|---|---|---|
|
46b610cc94 | ||
|
08249f572e | ||
|
de498c3ebd |
92
collection/opendb-categories/collection.json
Normal file
92
collection/opendb-categories/collection.json
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
{
|
||||||
|
"schema": {
|
||||||
|
"bsonType": "object",
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"permission": {
|
||||||
|
"read": true,
|
||||||
|
"create": false,
|
||||||
|
"update": false,
|
||||||
|
"delete": false
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"_id": {
|
||||||
|
"description": "存储文档 ID,系统自动生成"
|
||||||
|
},
|
||||||
|
"parent_id": {
|
||||||
|
"bsonType": "string",
|
||||||
|
"description": "父ID,用于多级分类"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"bsonType": "string",
|
||||||
|
"description": "用于区分不同的栏目分类",
|
||||||
|
"title": "栏目类型",
|
||||||
|
"label": "栏目"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"bsonType": "string",
|
||||||
|
"description": "类别名称",
|
||||||
|
"title": "类别名称",
|
||||||
|
"trim": "both"
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"bsonType": "string",
|
||||||
|
"description": "类别图标/图片地址",
|
||||||
|
"title": "图标地址",
|
||||||
|
"pattern": "^(http://|https://|/|./|@/)\\S",
|
||||||
|
"trim": "both"
|
||||||
|
},
|
||||||
|
"sort": {
|
||||||
|
"bsonType": "int",
|
||||||
|
"description": "类别排序,越大越靠后",
|
||||||
|
"title": "排序"
|
||||||
|
},
|
||||||
|
"open_url": {
|
||||||
|
"bsonType": "string",
|
||||||
|
"description": "点击跳转目标地址。如果是web地址则使用内置web-view打开;如果是本地页面则跳转本地页面;如果是schema地址则打开本地的app",
|
||||||
|
"title": "点击目标地址",
|
||||||
|
"format": "url",
|
||||||
|
"pattern": "^(http:\/\/|https:\/\/|\/|.\/|@\/)\\S",
|
||||||
|
"trim": "both"
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"bsonType": "string",
|
||||||
|
"description": "类别描述",
|
||||||
|
"title": "类别描述",
|
||||||
|
"trim": "both"
|
||||||
|
},
|
||||||
|
"is_hot_show": {
|
||||||
|
"bsonType": "bool",
|
||||||
|
"title": "加入热门显示",
|
||||||
|
"description": "是否热门显示"
|
||||||
|
},
|
||||||
|
"is_new_show": {
|
||||||
|
"bsonType": "bool",
|
||||||
|
"title": "加入新品显示",
|
||||||
|
"description": "是否新品显示"
|
||||||
|
},
|
||||||
|
"is_index_show": {
|
||||||
|
"bsonType": "bool",
|
||||||
|
"title": "首页显示",
|
||||||
|
"description": "是否首页显示"
|
||||||
|
},
|
||||||
|
"is_enable": {
|
||||||
|
"bsonType": "bool",
|
||||||
|
"defaultValue": true,
|
||||||
|
"title": "是否启用",
|
||||||
|
"label": "启用",
|
||||||
|
"description": "是否启用"
|
||||||
|
},
|
||||||
|
"create_date": {
|
||||||
|
"bsonType": "timestamp",
|
||||||
|
"description": "创建时间",
|
||||||
|
"defaultValue": {
|
||||||
|
"$env": "now"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"data": [],
|
||||||
|
"index": []
|
||||||
|
}
|
21
collection/opendb-categories/package.json
Normal file
21
collection/opendb-categories/package.json
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"name": "@opendb/opendb-categories",
|
||||||
|
"version": "0.0.1",
|
||||||
|
"description": "opendb-categories",
|
||||||
|
"keywords": [
|
||||||
|
"分类管理",
|
||||||
|
"通用类别",
|
||||||
|
"分类统一管理"
|
||||||
|
],
|
||||||
|
"opendb": {
|
||||||
|
"title": "通用类别",
|
||||||
|
"type": "collection",
|
||||||
|
"contributors": [
|
||||||
|
{
|
||||||
|
"name": "zmall",
|
||||||
|
"email": "",
|
||||||
|
"homepage": "https://gitee.com/dcloud/opendb"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
@ -169,11 +169,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"IndexName":"hash",
|
"IndexName":"error_hash",
|
||||||
"MgoKeySchema":{
|
"MgoKeySchema":{
|
||||||
"MgoIndexKeys":[
|
"MgoIndexKeys":[
|
||||||
{
|
{
|
||||||
"Name":"hash",
|
"Name":"error_hash",
|
||||||
"Direction":"1"
|
"Direction":"1"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -224,6 +224,18 @@
|
|||||||
],
|
],
|
||||||
"MgoIsUnique":false
|
"MgoIsUnique":false
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"IndexName":"previous_page_duration",
|
||||||
|
"MgoKeySchema":{
|
||||||
|
"MgoIndexKeys":[
|
||||||
|
{
|
||||||
|
"Name":"previous_page_duration",
|
||||||
|
"Direction":"1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"MgoIsUnique":false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user