feat: 添加了Docstring

This commit is contained in:
2026-01-20 10:13:51 +08:00
parent 9dce8988b3
commit 8ea30f0508
11 changed files with 35 additions and 3 deletions
+3
View File
@@ -1,3 +1,6 @@
'''
资源文件读取路由
'''
from flask import Blueprint, send_file
from ..utils import assets
+3
View File
@@ -1,3 +1,6 @@
'''
卡牌定义文件读取路由
'''
from flask import Blueprint
from ..utils import cards
+3
View File
@@ -1,3 +1,6 @@
'''
物质定义文件读取路由
'''
from flask import Blueprint
from ..utils import matters
+3
View File
@@ -1,3 +1,6 @@
'''
网页路由
'''
from flask import Blueprint, jsonify
page_bp = Blueprint("page", __name__, "/")
+3
View File
@@ -1,3 +1,6 @@
'''
反应定义文件读取路由
'''
from flask import Blueprint
from ..utils import reactions
+3
View File
@@ -1,3 +1,6 @@
'''
读取资源文件列表和路径
'''
import json
def readAssetsList() -> dict:
+3
View File
@@ -1,3 +1,6 @@
'''
读取卡牌定义文件列表和内容
'''
import json
def readCardList() -> dict:
+3
View File
@@ -1,3 +1,6 @@
'''
读取物质定义文件列表和内容
'''
import json
def readMatterList() -> dict:
+3
View File
@@ -1,3 +1,6 @@
'''
读取反应定义文件列表和内容
'''
import json
def readReactionList() -> dict: