Program/mooc/schemas/news_reply.py
Basyc ba5cebb38e
提交part4
Signed-off-by: Basyc <12016870+basyc@user.noreply.gitee.com>
2025-01-05 13:07:34 +00:00

24 lines
406 B
Python

from pydantic import BaseModel
class NewsReplyBase(BaseModel):
Rid: int
ParentId: int
Title: str
Author: str
Description: str
Thumb: str
Content: str
Url: str
Displayorder: int
Incontent: bool
Createtime: int
MediaId: str
class NewsReplyCreate(NewsReplyBase):
pass
class NewsReply(NewsReplyBase):
Id: int
class Config:
orm_mode = True