add
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
"""互动模块请求模型"""
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
class CommentCreateReq(BaseModel):
|
||||
"""发表评论(6.4):parent_id=0 为一级评论"""
|
||||
|
||||
content: str = Field(min_length=1, max_length=500)
|
||||
parent_id: int = 0
|
||||
reply_to_user_id: int | None = None
|
||||
Reference in New Issue
Block a user