mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-27 09:46:25 +02:00
feat: integrate comments UI into chat messages
This commit is contained in:
parent
f591a872cf
commit
6b5468bd7d
7 changed files with 74 additions and 29 deletions
|
|
@ -55,6 +55,8 @@ class CommentReplyResponse(BaseModel):
|
|||
created_at: datetime
|
||||
updated_at: datetime
|
||||
is_edited: bool
|
||||
can_edit: bool = False
|
||||
can_delete: bool = False
|
||||
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
|
||||
|
|
@ -70,6 +72,8 @@ class CommentResponse(BaseModel):
|
|||
created_at: datetime
|
||||
updated_at: datetime
|
||||
is_edited: bool
|
||||
can_edit: bool = False
|
||||
can_delete: bool = False
|
||||
reply_count: int
|
||||
replies: list[CommentReplyResponse] = []
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue