feat: add /comment rout
This commit is contained in:
@@ -29,4 +29,10 @@ class SelectChoice(BaseModel):
|
||||
|
||||
class ReactionCard(BaseModel):
|
||||
user_id: NonNegativeInt
|
||||
card_id: NonNegativeInt
|
||||
card_id: NonNegativeInt
|
||||
|
||||
class AddCommentBody(BaseModel):
|
||||
author_id: NonNegativeInt
|
||||
card_id: NonNegativeInt
|
||||
|
||||
comment_text: str
|
||||
@@ -36,4 +36,13 @@ class Card(BaseModel):
|
||||
author_id: int
|
||||
creation_date: str
|
||||
moderation_date: str = "Not moderated"
|
||||
active_status: bool = False
|
||||
active_status: bool = False
|
||||
|
||||
class Comment(BaseModel):
|
||||
comment_id: int
|
||||
|
||||
author_id: int
|
||||
card_id: int
|
||||
commet_text: str
|
||||
|
||||
creation_date: str
|
||||
Reference in New Issue
Block a user