feat: 在description.json增加rules部分

This commit is contained in:
2026-02-13 10:57:28 +08:00
parent 379b31fb5b
commit 89d1f6076a
2 changed files with 12 additions and 3 deletions
+7 -2
View File
@@ -29,6 +29,7 @@ backend/
- matters.py - matters.py
- reactions.py - reactions.py
- resources/ - resources/
- description.json
- assets/ - assets/
- index.json - index.json
- pics/ - pics/
@@ -48,13 +49,17 @@ backend/
### description.json ### description.json
`resources` 目录下的 `description.json` 是整个源的介绍文件应当包含源的名字、作者和唯一UUID。其中UUID不带横杠`-`)。下面给出一个示例: `resources` 目录下的 `description.json` 是整个源的介绍文件应当包含源的名字、作者和唯一UUID以及规则。其中UUID不带横杠`-`)。下面给出一个示例:
```json ```json
{ {
"name": "Offical Example", "name": "Offical Example",
"author": "Paper Chemis Community Team", "author": "Paper Chemis Community Team",
"uuid": "6b3d2702c1c345499fc8617d664b3627" "uuid": "6b3d2702c1c345499fc8617d664b3627",
"rules": {
"common": true
}
} }
``` ```
+5 -1
View File
@@ -1,5 +1,9 @@
{ {
"name": "Offical Example", "name": "Offical Example",
"author": "Paper Chemis Community Team", "author": "Paper Chemis Community Team",
"uuid": "6b3d2702c1c345499fc8617d664b3627" "uuid": "6b3d2702c1c345499fc8617d664b3627",
"rules": {
"common": true
}
} }