feat(B批收尾): B1门禁可信/B7-1菜单环防护/B2空值守卫/B7-2分页/B7-3字段清洗/B3空态/B4索引key/B5-3 comment三集合选A新建schema(漂移清零)/B6清理+admin配置+changelog

This commit is contained in:
12914
2026-09-12 14:14:42 +08:00
parent e408cd0a3e
commit c80c5977f7
79 changed files with 18538 additions and 16777 deletions
+89 -35
View File
@@ -1,35 +1,89 @@
{
"bsonType": "object",
"required": ["src"],
"permission": {
"read": true,
"create": "auth.uid != null",
"update": false,
"delete": false
},
"properties": {
"_id": {
"description": "ID,系统自动生成"
},
"src": {
"bsonType": "string",
"description": "资源地址(支持云存储 ID 或外部链接)",
"format": "url",
"pattern": "^(cloud://|http://|https://)",
"trim": true,
"maxLength": 512,
"errorMessage": {
"format": "URL 格式无效,示例:cloud://example.jpg 或 https://example.com/image.jpg",
"pattern": "仅支持云存储路径(cloud://)或 HTTP/HTTPS 链接"
}
},
"name": {
"bsonType": "string",
"description": "模板名",
"trim": true,
"minLength": 1,
"maxLength": 64
}
}
}
{
"bsonType": "object",
"required": [
"font_color",
"backgrond_color",
"select_src",
"temptele_src",
"temptele_name",
"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,系统自动生成"
},
"font_color": {
"bsonType": "string",
"description": "文字颜色代码",
"trim": true,
"pattern": "^#[0-9a-fA-F]{3,8}$"
},
"background_color": {
"bsonType": "string",
"description": "背景颜色代码(新字段)",
"trim": true,
"pattern": "^#[0-9a-fA-F]{3,8}$"
},
"backgrond_color": {
"bsonType": "string",
"description": "背景颜色代码(兼容旧拼写)",
"trim": true,
"pattern": "^#[0-9a-fA-F]{3,8}$"
},
"select_src": {
"bsonType": "string",
"description": "素材选择地址",
"trim": true,
"minLength": 1,
"maxLength": 512
},
"temptele_src": {
"bsonType": "string",
"description": "模板素材地址",
"trim": true,
"minLength": 1,
"maxLength": 512
},
"temptele_name": {
"bsonType": "string",
"description": "模板名称",
"trim": true,
"minLength": 2,
"maxLength": 50
},
"select_icon_color": {
"bsonType": "string",
"description": "图标选中颜色代码",
"trim": true,
"pattern": "^#[0-9a-fA-F]{3,8}$"
},
"icon_color": {
"bsonType": "string",
"description": "图标未选中颜色代码",
"trim": true,
"pattern": "^#[0-9a-fA-F]{3,8}$"
},
"user_name_color": {
"bsonType": "string",
"description": "默认用户名字颜色代码",
"trim": true,
"pattern": "^#[0-9a-fA-F]{3,8}$"
},
"btn_color": {
"bsonType": "string",
"description": "按钮默认颜色代码",
"trim": true,
"pattern": "^#[0-9a-fA-F]{3,8}$"
}
},
"version": "0.0.1"
}