mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-04 13:22:41 +02:00
Add comments service with get_comments_for_message method
This commit is contained in:
parent
43939d554c
commit
d24759f691
2 changed files with 146 additions and 4 deletions
|
|
@ -55,8 +55,6 @@ class CommentReplyResponse(BaseModel):
|
|||
created_at: datetime
|
||||
updated_at: datetime
|
||||
is_edited: bool
|
||||
can_edit: bool
|
||||
can_delete: bool
|
||||
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
|
||||
|
|
@ -72,8 +70,6 @@ class CommentResponse(BaseModel):
|
|||
created_at: datetime
|
||||
updated_at: datetime
|
||||
is_edited: bool
|
||||
can_edit: bool
|
||||
can_delete: bool
|
||||
reply_count: int
|
||||
replies: list[CommentReplyResponse] = []
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue