Files
t/uniCloud-alipay/database/cms-temp.schema.json
T
2025-06-13 20:48:15 +08:00

70 lines
1.9 KiB
JSON

{
"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}$"
}
}
}