Files
mtusi2026lab2/internal/pkg/domain/pagination.go
T
2026-10-06 19:51:28 +03:00

24 lines
269 B
Go

package domain
import "time"
type Position struct {
CreatedAt time.Time
ID string
}
type Pagination struct {
After *Position
Limit int
}
type ChatPage struct {
Items []Chat
HasMore bool
}
type MessagePage struct {
Items []Message
HasMore bool
}