feat: 🎉 Rating Orama!

This commit is contained in:
2023-04-09 06:45:27 +02:00
commit b2f4b573f3
61 changed files with 8130 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
package repository
import "github.com/zepyrshut/rating-orama/models"
type DBRepo interface {
CheckIfTvShowExists(showID string) bool
InsertTvShow(tvShow models.TvShow) error
InsertEpisodes(tvShow models.TvShow) error
FetchTvShow(showID string) (models.TvShow, error)
IncreasePopularity(showID string)
FetchEpisodes(showID string) ([]models.Season, error)
TvShowAverageRating(show *models.TvShow)
SeasonAverageRating(show *models.TvShow)
TvShowMedianRating(show *models.TvShow)
SeasonMedianRating(show *models.TvShow)
}