diff --git a/bin/utils/error.py b/bin/utils/error.py index 5c29ca7..f63e16b 100644 --- a/bin/utils/error.py +++ b/bin/utils/error.py @@ -6,6 +6,7 @@ # @File Name: error.py +from typing import Optional from flask import jsonify from flask import Response from db.db import (update_data, fetch_table) @@ -15,7 +16,7 @@ class ErrorProcess: def __init__(self): self.msg_template = {'code': -2, 'msg': '', - 'data': None} + 'data': Optional[list]} def get_theme_list(self) -> Response: """ diff --git a/static/index.html b/static/index.html index 5d65654..f564326 100644 --- a/static/index.html +++ b/static/index.html @@ -16,11 +16,16 @@


- 看到这句话就说明程序正常运行啦!! 文档 + 看到这句话就说明程序正常运行啦!! 查看文档
- 本服务使用Python-Flask开发(Flask 官方地址:Flask) + 服务端使用Flask开发没有使用异步编程 +
+ 点击查看本地部署示例 +
+ 点击查看已部署好的调用示例 +
+ 注: 调用支持POST 和 GET 方法请求
- 调用示例: 127.0.0.1:5000/get?name=main 注: 调用支持POST 和 GET 方法请求
项目开源协议: Apache-2.0 即:
@@ -29,10 +34,10 @@ 你可以在注明来源版权信息的情况下对源代码进行任意分发和修改以及衍生

-

效果应该是这样的:

- example +

效果是这样的↓

+ example
- (这只是一张图片) + 默认主题为 lewd