17
17
// SeriesRepo represents all series interactions
18
18
SeriesRepo interface {
19
19
GetSeries (ctx context.Context , seriesID int ) (Series , error )
20
- GetSeriesMeta (ctx context.Context , seriesID int ) (Series , error )
20
+ GetSeriesMeta (ctx context.Context , seriesID int ) (SeriesMeta , error )
21
+ GetSeriesFullMeta (ctx context.Context , seriesID int ) (Series , error )
21
22
GetSeriesImmediateChildrenSeries (ctx context.Context , seriesID int ) ([]SeriesMeta , error )
22
23
GetSeriesFromPath (ctx context.Context , path string ) (Series , error )
23
24
Search (ctx context.Context , query string ) (Series , error )
@@ -33,15 +34,21 @@ type (
33
34
}
34
35
// BreadcrumbRepo represents all breadcrumb interactions
35
36
BreadcrumbRepo interface {
36
- VideoBreadcrumb (ctx context.Context , videoID int ) ([]Breadcrumb , error )
37
- SeriesBreadcrumb (ctx context.Context , seriesID int ) ([]Breadcrumb , error )
37
+ GetVideoBreadcrumb (ctx context.Context , videoID int ) ([]Breadcrumb , error )
38
+ GetSeriesBreadcrumb (ctx context.Context , seriesID int ) ([]Breadcrumb , error )
38
39
Find (ctx context.Context , path string ) (BreadcrumbItem , error )
39
40
}
40
41
// TeamRepo represents all team interactions
41
42
TeamRepo interface {
42
43
ListTeams (ctx context.Context ) ([]Team , error )
43
- GetTeam (ctx context.Context , emailAlias string ) (Team , error )
44
- GetTeamByYear (ctx context.Context , teamID , year int ) (Team , error )
44
+ GetTeamByEmail (ctx context.Context , emailAlias string ) (Team , error )
45
+ GetTeamByID (ctx context.Context , teamID int ) (Team , error )
46
+ GetTeamByYearByEmail (ctx context.Context , emailAlias string , year int ) (Team , error )
47
+ GetTeamByYearByID (ctx context.Context , teamID , year int ) (Team , error )
48
+ GetTeamByStartEndYearByEmail (ctx context.Context , emailAlias string , startYear , endYear int ) (Team , error )
49
+ GetTeamByStartEndYearByID (ctx context.Context , teamID , startYear , endYear int ) (Team , error )
50
+ getTeamByEmail (ctx context.Context , emailAlias string ) (Team , error )
51
+ getTeamByID (ctx context.Context , teamID int ) (Team , error )
45
52
ListTeamMembers (ctx context.Context , teamID int ) ([]TeamMember , error )
46
53
ListOfficers (ctx context.Context ) ([]TeamMember , error )
47
54
}
0 commit comments