Files
mtusi2026lab5/dto/create_message.go
T
2026-11-10 20:42:03 +03:00

17 lines
466 B
Go

package dto
type CreateMessageRequest struct {
ChatID string `json:"-"`
Text string `json:"text"`
AttachmentIDs []string `json:"attachment_ids"`
}
type CreateMessageResponse struct {
ID string `json:"id"`
ChatID string `json:"chat_id"`
SenderID string `json:"sender_id"`
Text string `json:"text"`
AttachmentIDs []string `json:"attachment_ids"`
CreatedAt Timestamp `json:"created_at"`
}