浏览代码

recover msg

tomoya 2 年之前
父节点
当前提交
222d2cbaf9
共有 2 个文件被更改,包括 6 次插入0 次删除
  1. 1 0
      backend/app/app/schemas/__init__.py
  2. 5 0
      backend/app/app/schemas/msg.py

+ 1 - 0
backend/app/app/schemas/__init__.py

@@ -1,3 +1,4 @@
 from .token import Token, TokenPayload
 from .user import User, UserCreate, UserInDB, UserUpdate
+from .msg import Msg
 from .video import Video, VideoCreate, VideoInDB, VideoUpdate

+ 5 - 0
backend/app/app/schemas/msg.py

@@ -0,0 +1,5 @@
+from pydantic import BaseModel
+
+
+class Msg(BaseModel):
+    msg: str