Files
mtusi2026lab4/internal/domain/cursor.go
T
2026-10-01 12:44:59 +03:00

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
}