2025-01-05 21:07:34 +08:00
|
|
|
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:
|
2025-03-04 20:36:52 +08:00
|
|
|
from_attributes = True
|