feat: add ticket comments attachments and export

This commit is contained in:
hailin
2026-06-30 18:42:04 +08:00
parent c293e3f56a
commit f8298632b6
3 changed files with 154 additions and 2 deletions

View File

@@ -50,3 +50,35 @@ class TicketEventOut(Schema):
to_value: dict
remark: str
created_at: datetime
class TicketCommentIn(Schema):
content: str
comment_type: str = "user"
visibility: str = "internal"
class TicketCommentOut(Schema):
id: int
content: str
comment_type: str
visibility: str
created_at: datetime
class TicketAttachmentIn(Schema):
file_name: str
file_type: str = ""
mime_type: str = ""
file_size: int = 0
storage_path: str
class TicketAttachmentOut(Schema):
id: int
file_name: str
file_type: str
mime_type: str
file_size: int
storage_path: str
created_at: datetime