You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
617 B
16 lines
617 B
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
|
|
}
|