Documentation ¶
Index ¶
- type IGenreRepo
- type RepoPostgre
- func (repo *RepoPostgre) AddFilm(genres []uint64, filmId uint64) error
- func (repo *RepoPostgre) GetFilmGenres(filmId uint64) ([]models.GenreItem, error)
- func (repo *RepoPostgre) GetGenreById(genreId uint64) (string, error)
- func (repo *RepoPostgre) UsersStatistics(idUser uint64) ([]requests.UsersStatisticsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IGenreRepo ¶
type RepoPostgre ¶
type RepoPostgre struct {
// contains filtered or unexported fields
}
func GetGenreRepo ¶
func (*RepoPostgre) AddFilm ¶
func (repo *RepoPostgre) AddFilm(genres []uint64, filmId uint64) error
func (*RepoPostgre) GetFilmGenres ¶
func (repo *RepoPostgre) GetFilmGenres(filmId uint64) ([]models.GenreItem, error)
func (*RepoPostgre) GetGenreById ¶
func (repo *RepoPostgre) GetGenreById(genreId uint64) (string, error)
func (*RepoPostgre) UsersStatistics ¶
func (repo *RepoPostgre) UsersStatistics(idUser uint64) ([]requests.UsersStatisticsResponse, error)
Click to show internal directories.
Click to hide internal directories.