stufflog graphql server
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.
 
 
 

14 lines
474 B

package repositories
import (
"context"
"git.aiterp.net/stufflog/server/models"
)
type ActivityRepository interface {
Find(ctx context.Context, id string) (*models.Activity, error)
List(ctx context.Context, filter models.ActivityFilter) ([]*models.Activity, error)
Insert(ctx context.Context, activity models.Activity) (*models.Activity, error)
Save(ctx context.Context, activity models.Activity) error
Delete(ctx context.Context, activity models.Activity) error
}