Add Comment DTO

This commit is contained in:
2026-01-17 13:59:35 +00:00
parent 47e71113f6
commit ad416d4966

16
dto/comment.py Normal file
View File

@@ -0,0 +1,16 @@
class Comment:
def __init__(self,
id: str,
post_id: str,
author: str,
content: str,
timestamp: float,
reply_to: str,
source: str):
self.id = id
self.post_id = post_id
self.author = author
self.content = content
self.timestamp = timestamp
self.reply_to = reply_to
self.source = source