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.
15 lines
506 B
15 lines
506 B
package stats
|
|
|
|
import (
|
|
"context"
|
|
"git.aiterp.net/stufflog3/stufflog3/entities"
|
|
"git.aiterp.net/stufflog3/stufflog3/models"
|
|
)
|
|
|
|
type Repository interface {
|
|
Find(ctx context.Context, scopeID, statID int) (*entities.Stat, error)
|
|
List(ctx context.Context, scopeID int) ([]entities.Stat, error)
|
|
Insert(ctx context.Context, stat entities.Stat) (*entities.Stat, error)
|
|
Update(ctx context.Context, stat entities.Stat, update models.StatUpdate) error
|
|
Delete(ctx context.Context, stat entities.Stat) error
|
|
}
|