Files
mtusi2026lab2/dto/create_message.go
T
2026-10-06 19:51:28 +03:00

17 lines
346 B
Go

package dto
import "time"
type CreateMessageRequest struct {
ChatID string `json:"-"`
Text string `json:"text"`
}
type CreateMessageResponse struct {
ID string `json:"id"`
ChatID string `json:"chat_id"`
SenderID string `json:"sender_id"`
Text string `json:"text"`
CreatedAt time.Time `json:"created_at"`
}