forked from mtusi2026/mtusi2026lab2
29 lines
378 B
Go
29 lines
378 B
Go
package dto
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type Message struct {
|
|
ID uuid.UUID
|
|
ChatID uuid.UUID
|
|
SenderID uuid.UUID
|
|
Text string
|
|
CreatedAt time.Time
|
|
}
|
|
|
|
type CreateMessage struct {
|
|
ChatID uuid.UUID
|
|
SenderID uuid.UUID
|
|
Text string
|
|
}
|
|
|
|
type MessageFilters struct {
|
|
ChatID uuid.UUID
|
|
UserID uuid.UUID
|
|
Limit *int
|
|
AfterID *uuid.UUID
|
|
}
|