forked from mtusi2026/mtusi2026lab4
24 lines
351 B
Go
24 lines
351 B
Go
package domain
|
|
|
|
import "time"
|
|
|
|
type Message struct {
|
|
ID string
|
|
ChatID string
|
|
SenderID string
|
|
Text string
|
|
AttachmentIDs []string
|
|
CreatedAt time.Time
|
|
}
|
|
|
|
type MessageCursor struct {
|
|
CreatedAt time.Time
|
|
MessageID string
|
|
ChatID string
|
|
}
|
|
|
|
type MessagePage struct {
|
|
Items []Message
|
|
NextCursor *string
|
|
}
|