Files
mtusi2026lab4/internal/domain/message.go
T
2026-10-28 12:40:39 +03:00

23 lines
307 B
Go

package domain
import "time"
type Message struct {
ID string
ChatID string
SenderID string
Text string
CreatedAt time.Time
}
type MessageCursor struct {
CreatedAt time.Time
MessageID string
ChatID string
}
type MessagePage struct {
Items []Message
NextCursor *string
}