Documentation ¶
Index ¶
- type ICrewRepo
- type RepoPostgre
- func (repo *RepoPostgre) AddFavoriteActor(userId uint64, actorId uint64) error
- func (repo *RepoPostgre) AddFilm(actors []uint64, filmId uint64) error
- func (repo *RepoPostgre) CheckActor(userId uint64, actorId uint64) (bool, error)
- func (repo *RepoPostgre) FindActor(name string, birthDate string, films []string, career []string, country string, ...) ([]models.Character, error)
- func (repo *RepoPostgre) GetActor(actorId uint64) (*models.CrewItem, error)
- func (repo *RepoPostgre) GetFavoriteActors(userId uint64, start uint64, end uint64) ([]models.Character, error)
- func (repo *RepoPostgre) GetFilmCharacters(filmId uint64) ([]models.Character, error)
- func (repo *RepoPostgre) GetFilmDirectors(filmId uint64) ([]models.CrewItem, error)
- func (repo *RepoPostgre) GetFilmScenarists(filmId uint64) ([]models.CrewItem, error)
- func (repo *RepoPostgre) RemoveFavoriteActor(userId uint64, actorId uint64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ICrewRepo ¶
type ICrewRepo interface { GetFilmDirectors(filmId uint64) ([]models.CrewItem, error) GetFilmScenarists(filmId uint64) ([]models.CrewItem, error) GetFilmCharacters(filmId uint64) ([]models.Character, error) GetActor(actorId uint64) (*models.CrewItem, error) FindActor(name string, birthDate string, films []string, career []string, country string, first, limit uint64) ([]models.Character, error) GetFavoriteActors(userId uint64, start uint64, end uint64) ([]models.Character, error) CheckActor(userId uint64, actorId uint64) (bool, error) AddFavoriteActor(userId uint64, actorId uint64) error RemoveFavoriteActor(userId uint64, actorId uint64) error AddFilm(actors []uint64, filmId uint64) error }
type RepoPostgre ¶
type RepoPostgre struct {
// contains filtered or unexported fields
}
func GetCrewRepo ¶
func (*RepoPostgre) AddFavoriteActor ¶
func (repo *RepoPostgre) AddFavoriteActor(userId uint64, actorId uint64) error
func (*RepoPostgre) AddFilm ¶
func (repo *RepoPostgre) AddFilm(actors []uint64, filmId uint64) error
func (*RepoPostgre) CheckActor ¶
func (repo *RepoPostgre) CheckActor(userId uint64, actorId uint64) (bool, error)
func (*RepoPostgre) GetActor ¶
func (repo *RepoPostgre) GetActor(actorId uint64) (*models.CrewItem, error)
func (*RepoPostgre) GetFavoriteActors ¶
func (*RepoPostgre) GetFilmCharacters ¶
func (repo *RepoPostgre) GetFilmCharacters(filmId uint64) ([]models.Character, error)
func (*RepoPostgre) GetFilmDirectors ¶
func (repo *RepoPostgre) GetFilmDirectors(filmId uint64) ([]models.CrewItem, error)
func (*RepoPostgre) GetFilmScenarists ¶
func (repo *RepoPostgre) GetFilmScenarists(filmId uint64) ([]models.CrewItem, error)
func (*RepoPostgre) RemoveFavoriteActor ¶
func (repo *RepoPostgre) RemoveFavoriteActor(userId uint64, actorId uint64) error
Click to show internal directories.
Click to hide internal directories.