summaryrefslogtreecommitdiff
path: root/internal/db/report.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/report.go')
-rw-r--r--internal/db/report.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/db/report.go b/internal/db/report.go
index 216e10fdd..194d00b4f 100644
--- a/internal/db/report.go
+++ b/internal/db/report.go
@@ -28,6 +28,9 @@ import (
type Report interface {
// GetReportByID gets one report by its db id
GetReportByID(ctx context.Context, id string) (*gtsmodel.Report, Error)
+ // GetReports gets limit n reports using the given parameters.
+ // Parameters that are empty / zero are ignored.
+ GetReports(ctx context.Context, resolved *bool, accountID string, targetAccountID string, maxID string, sinceID string, minID string, limit int) ([]*gtsmodel.Report, Error)
// PutReport puts the given report in the database.
PutReport(ctx context.Context, report *gtsmodel.Report) Error
// UpdateReport updates one report by its db id.