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