feat: 在description.json增加rules部分
This commit is contained in:
@@ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user