Archived
修改
This commit is contained in:
2 files changed
+13
-7
No files matched your search
+2
-1
@@ -6,6 +6,7 @@
|
|||||||
# @File Name: error.py
|
# @File Name: error.py
|
||||||
|
|
||||||
|
|
||||||
|
from typing import Optional
|
||||||
from flask import jsonify
|
from flask import jsonify
|
||||||
from flask import Response
|
from flask import Response
|
||||||
from db.db import (update_data, fetch_table)
|
from db.db import (update_data, fetch_table)
|
||||||
@@ -15,7 +16,7 @@ class ErrorProcess:
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.msg_template = {'code': -2,
|
self.msg_template = {'code': -2,
|
||||||
'msg': '',
|
'msg': '',
|
||||||
'data': None}
|
'data': Optional[list]}
|
||||||
|
|
||||||
def get_theme_list(self) -> Response:
|
def get_theme_list(self) -> Response:
|
||||||
"""
|
"""
|
||||||
|
|||||||
+11
-6
File diff suppressed because one or more lines are too long.
Reference in New Issue
Block a user