From b2ce6d4e5a057910b2db090bad974ccde4f43bb4 Mon Sep 17 00:00:00 2001 From: panda <7934952@qq.com> Date: Wed, 21 Aug 2024 17:05:46 +0800 Subject: [PATCH] add new --- internal/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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="评论用户邮箱不允许为空"