package repositories import ( "context" "github.com/gisle/stufflog/models" ) type PeriodRepository interface { FindID(ctx context.Context, id string) (*models.Period, error) List(ctx context.Context) ([]*models.Period, error) ListUser(ctx context.Context, user models.User) ([]*models.Period, error) ListActivity(ctx context.Context, activity models.Activity) ([]*models.Period, error) Insert(ctx context.Context, period models.Period) error Update(ctx context.Context, period models.Period, updates []*models.PeriodUpdate) (*models.Period, error) Remove(ctx context.Context, period models.Period) error }