Files
t-admin/uniCloud-alipay/database/cms-temp.schema.json
T

90 lines
2.2 KiB
JSON

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