This commit is contained in:
2025-06-13 20:48:15 +08:00
parent 898b816655
commit a41fbbd663
42 changed files with 7189 additions and 0 deletions
@@ -0,0 +1,70 @@
{
"bsonType": "object",
"required": [
"temptele_name",
"select_src",
"font_color",
"temptele_src",
"backgrond_color",
"select_icon_color",
"icon_color",
"user_name_color",
"btn_color"
],
"permission": {
"read": true,
"create": "'admin' in auth.role", // 登录用户可创建
"update": "'admin' in auth.role", // 仅作者可修改
"delete": "'admin' in auth.role" // 作者或管理员可删除
},
"properties": {
"_id": {
"description": "ID,系统自动生成",
"bsonType": "objectId"
},
"font_color": {
"bsonType": "string",
"description": "文字颜色代码",
"pattern": "^#[0-9a-fA-F]{3,6}$"
},
"backgrond_color": {
"bsonType": "string",
"description": "背景颜色代码",
"pattern": "^#[0-9a-fA-F]{3,6}$"
},
"select_src": {
"bsonType": "string",
"description": "素材选择(选择模板的样例图)地址"
},
"temptele_src": {
"bsonType": "string",
"description": "模板图片(实际使用)地址"
},
"temptele_name": {
"bsonType": "string",
"description": "模板名称",
"minLength": 2,
"maxLength": 50
},
"select_icon_color": {
"bsonType": "string",
"description": "图标选中颜色的代码",
"pattern": "^#[0-9a-fA-F]{3,6}$"
},
"icon_color": {
"bsonType": "string",
"description": "图标未选中颜色的代码",
"pattern": "^#[0-9a-fA-F]{3,6}$"
},
"user_name_color": {
"bsonType": "string",
"description": "默认用户名字颜色的代码",
"pattern": "^#[0-9a-fA-F]{3,6}$"
},
"btn_color": {
"bsonType": "string",
"description": "按钮(回复和删除评论)默认颜色的代码",
"pattern": "^#[0-9a-fA-F]{3,6}$"
}
}
}
@@ -0,0 +1,27 @@
{
"bsonType": "object",
"required": [],
"permission": {
"read": true,
"create": true,
"update": true,
"delete": true
},
"properties": {
"_id": {
"description": "ID,系统自动生成"
},
"vote_id": {
"bsonType": "string"
},
"selectValue": {
"bsonType": "object"
},
"type": {
"bsonType": "string"
},
"count": {
"bsonType": "int"
}
}
}
@@ -0,0 +1,27 @@
{
"bsonType": "object",
"required": [],
"permission": {
"read": true,
"create": true,
"update": true,
"delete": true
},
"properties": {
"_id": {
"description": "ID,系统自动生成"
},
"user_id": {
"bsonType": "string"
},
"vote_id": {
"bsonType": "string"
},
"selectValue": {
"bsonType": "array"
},
"type": {
"bsonType": "string"
}
}
}
+23
View File
@@ -0,0 +1,23 @@
{
"uni-cms-unlock-record": {
"data": [],
"index": [
{
"IndexName": "unique_article_trans_",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "unique_id",
"Direction": "1"
},{
"Name": "article_id",
"Direction": "1"
},{
"Name": "trans_id",
"Direction": "1"
}],
"MgoIsUnique": false
}
}
]
}
}
+1
View File
@@ -0,0 +1 @@
{"bsonType":"object","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID,系统自动生成"}}}
@@ -0,0 +1 @@
{"bsonType":"object","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID,系统自动生成"}}}
@@ -0,0 +1,25 @@
// 文档教程: https://uniapp.dcloud.net.cn/uniCloud/schema
{
"bsonType": "object",
"required": [],
"permission": {
"read": true,
"create": true,
"update": true,
"delete": true
},
"properties": {
"_id": {
"description": "ID,系统自动生成"
},
"user_id": {
"bsonType": "string",
"foreignKey": "uni-id-users._id",
"pattern": "^[0-9a-f]{24}$"
},
"vote_id": {
"bsonType": "string",
"foreignKey": "cms_vote.vote_id"
}
}
}