Changes to change system.
the build was successful

This commit is contained in:
2019-06-16 10:32:34 +02:00
parent 13f82399ef
commit 021f67ea4b
19 changed files with 503 additions and 87 deletions
+13
View File
@@ -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
}
+1
View File
@@ -5,6 +5,7 @@ import "errors"
// A Bundle is a set of repositories.
type Bundle struct {
Characters CharacterRepository
Changes ChangeRepository
Tags TagRepository
}