This commit is contained in:
2025-03-28 16:27:26 +08:00
parent f654e16c18
commit a3e6a6d8b8
494 changed files with 4072 additions and 47246 deletions
@@ -1,62 +0,0 @@
{
"uni-id-permissions": [
{
"_id": "READ_UNI_CMS_ARTICLE",
"permission_id": "READ_UNI_CMS_ARTICLE",
"permission_name": "读取CMS文章"
},
{
"_id": "CREATE_UNI_CMS_ARTICLE",
"permission_id": "CREATE_UNI_CMS_ARTICLE",
"permission_name": "创建CMS文章"
},
{
"_id": "UPDATE_UNI_CMS_ARTICLE",
"permission_id": "UPDATE_UNI_CMS_ARTICLE",
"permission_name": "更新CMS文章"
},
{
"_id": "DELETE_UNI_CMS_ARTICLE",
"permission_id": "DELETE_UNI_CMS_ARTICLE",
"permission_name": "删除CMS文章"
},
{
"_id": "READ_UNI_CMS_CATEGORIES",
"permission_id": "READ_UNI_CMS_CATEGORIES",
"permission_name": "读取CMS分类"
},
{
"_id": "CREATE_UNI_CMS_CATEGORIES",
"permission_id": "CREATE_UNI_CMS_CATEGORIES",
"permission_name": "创建CMS分类"
},
{
"_id": "UPDATE_UNI_CMS_CATEGORIES",
"permission_id": "UPDATE_UNI_CMS_CATEGORIES",
"permission_name": "更新CMS分类"
},
{
"_id": "DELETE_UNI_CMS_CATEGORIES",
"permission_id": "DELETE_UNI_CMS_CATEGORIES",
"permission_name": "删除CMS分类"
}
],
"uni-id-roles": [
{
"_id": "uni-cms-author",
"role_id": "uni-cms-author",
"role_name": "作者",
"comment": "uni-cms作者",
"permission": [
"READ_UNI_CMS_ARTICLE",
"CREATE_UNI_CMS_ARTICLE",
"UPDATE_UNI_CMS_ARTICLE",
"DELETE_UNI_CMS_ARTICLE",
"READ_UNI_CMS_CATEGORIES",
"CREATE_UNI_CMS_CATEGORIES",
"UPDATE_UNI_CMS_CATEGORIES",
"DELETE_UNI_CMS_CATEGORIES"
]
}
]
}
@@ -1,52 +0,0 @@
{
"bsonType": "object",
"required": [
"name"
],
"permission": {
"read": true,
"create": "'admin' in auth.role || 'CREATE_UNI_CMS_CATEGORY' in auth.permission",
"update": "'admin' in auth.role || 'UPDATE_UNI_CMS_CATEGORY' in auth.permission",
"delete": "'admin' in auth.role || 'DELETE_UNI_CMS_CATEGORY' in auth.permission"
},
"properties": {
"_id": {
"description": "存储文档 ID(文章 ID),系统自动生成"
},
"name": {
"bsonType": "string",
"description": "类别名称",
"label": "名称",
"trim": "both"
},
"description": {
"bsonType": "string",
"description": "类别描述",
"label": "描述",
"trim": "both"
},
"icon": {
"bsonType": "string",
"description": "类别图标地址",
"label": "图标地址",
"pattern": "^(http://|https://|/|./|@/)\\S",
"trim": "both"
},
"sort": {
"bsonType": "int",
"description": "类别显示顺序",
"label": "排序"
},
"article_count": {
"bsonType": "int",
"description": "该类别下文章数量"
},
"create_date": {
"bsonType": "timestamp",
"description": "创建时间",
"forceDefaultValue": {
"$env": "now"
}
}
}
}