fix: 修复文本取件问题

This commit is contained in:
lan
2024-05-06 13:02:00 +08:00
parent b365938937
commit f79be8a111
37 changed files with 27 additions and 43 deletions
+15
View File
@@ -0,0 +1,15 @@
# @Time : 2023/8/14 11:48
# @Author : Lan
# @File : response.py
# @Software: PyCharm
from typing import Generic, TypeVar
from pydantic.v1.generics import GenericModel
T = TypeVar('T')
class APIResponse(GenericModel, Generic[T]):
code: int = 200
message: str = 'ok'
detail: T