Program/mooc/schemas/news_reply.py

24 lines
413 B
Python
Raw Normal View History

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:
from_attributes = True