feat: add ticket comments attachments and export
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user