Files
mtusi2026lab7/dto/create_message.go
T
Khakimov Dmitrij 2a7418fc45
Skeleton contracts / contracts (pull_request) Blocked by required conditions
lab 7 done
2026-11-29 21:59:16 +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"`
}