18 lines
227 B
Go
18 lines
227 B
Go
package domain
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type Cursor struct {
|
|
Scope uuid.UUID
|
|
CreatedAt time.Time
|
|
ID uuid.UUID
|
|
}
|
|
|
|
func (c Cursor) BelongsTo(scope uuid.UUID) bool {
|
|
return c.Scope == scope
|
|
}
|