24 lines
269 B
Go
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
|
|
}
|