add:fronted

This commit is contained in:
lan
2023-08-14 13:30:10 +08:00
parent e70caaced0
commit 1d9642cf3e
16 changed files with 176 additions and 100 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