@@ -0,0 +1,13 @@
|
||||
package repositories
|
||||
|
||||
import (
|
||||
"context"
|
||||
"git.aiterp.net/rpdata/api/models"
|
||||
)
|
||||
|
||||
type ChangeRepository interface {
|
||||
Find(ctx context.Context, id string) (*models.Change, error)
|
||||
List(ctx context.Context, filter models.ChangeFilter) ([]*models.Change, error)
|
||||
Insert(ctx context.Context, change models.Change) (*models.Change, error)
|
||||
Remove(ctx context.Context, change models.Change) error
|
||||
}
|
||||
@@ -5,6 +5,7 @@ import "errors"
|
||||
// A Bundle is a set of repositories.
|
||||
type Bundle struct {
|
||||
Characters CharacterRepository
|
||||
Changes ChangeRepository
|
||||
Tags TagRepository
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user