diff --git a/internal/models.py b/internal/models.py index 59732c1..efd037c 100644 --- a/internal/models.py +++ b/internal/models.py @@ -132,7 +132,7 @@ class Comment(BaseModel): parent_id:Annotated[int,Field( title="父级评论id", description="父级评论允许为空" - )] + )]=None blog_id:Annotated[int,Field( title="博客id", description="博客id允许为空" @@ -140,7 +140,7 @@ class Comment(BaseModel): commentname:Annotated[str,Field( title="评论用户", description="评论用户不允许为空" - )]=None + )] email:Annotated[str,Field( title="评论用户邮箱", description="评论用户邮箱不允许为空"