🐛 修复后端回收站部署内容

This commit is contained in:
orion committed 2026-09-11 16:59:07 +08:00
1 parent 8badb80600
commit dddca40df8
22 files changed
+986 -124

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
# @Time : 2023/8/14 11:48
# @Author : Lan
# @File : response.py
# @Software: PyCharm
from typing import Generic, Optional, TypeVar
from pydantic import BaseModel
T = TypeVar("T")
class APIResponse(BaseModel, Generic[T]):
code: int = 200
message: str = "ok"
msg: Optional[str] = None
detail: Optional[T] = None
def model_post_init(self, __context) -> None:
if self.msg is None:
self.msg = self.message