Documentation ¶
Index ¶
- func AddAdminUser(admin *entity.Admin) error
- func AddAllCinemaFilm(cinemaFilm *entity.CinemaFilm) error
- func AddMovieHall(movieHall *entity.MovieHall) error
- func AddPlace(place *entity.Place) error
- func DeleteAdminUser(auID int64) error
- func DeleteCinemaFilm(cfID int64) error
- func DeleteFilm(movieId int64) error
- func DeleteMovieHall(mhID int64) error
- func DeletePlace(placeId int64) error
- func Init(mysqlDSN string)
- func InsertActor(actor *entity.Actor, actorType int64) (error, int64)
- func InsertCinema(cinema *entity.Cinema) error
- func InsertFilm(film *entity.Film) (int64, error)
- func InsertFilmActor(filmID, actorID int64, filmName, actorName string) error
- func SelectAdmin(user string, password string) (*entity.Admin, error)
- func SelectAdminByAUID(auID int64) (*entity.Admin, error)
- func SelectAdminTotal() (int64, error)
- func SelectAllAdmin(page int64, num int64) ([]*entity.Admin, error)
- func SelectAllCinemaFilm(page int64, num int64) ([]*entity.CinemaFilm, error)
- func SelectAllCinemaFilmByCinemaID(page int64, num int64, cinemaID int64) ([]*entity.CinemaFilm, error)
- func SelectAllCinemaFilmByMHID(mhId int64) (*entity.CinemaFilm, error)
- func SelectAllCinemaFilmTotalByCinemaID(cinemaID int64) (int64, error)
- func SelectAllComment(page int64, num int64) ([]*entity.Comment, error)
- func SelectAllFilms(page int64, num int64) ([]*entity.Film, error)
- func SelectAllMovieHall(page int64, num int64) ([]*entity.MovieHall, error)
- func SelectAllMovieHallByMHID(mhId int64) (*entity.MovieHall, error)
- func SelectAllMovieHallBycinemaID(page int64, num int64, cinemaID int64) ([]*entity.MovieHall, error)
- func SelectAllMovieHallsBycinemaID(cinemaID int64) ([]*entity.MovieHall, error)
- func SelectAllOrder(page int64, num int64) ([]*entity.Order, error)
- func SelectAllPlace(page int64, num int64) ([]*entity.Place, error)
- func SelectAllUsers(page int64, num int64) ([]*entity.User, error)
- func SelectCinema(cinema *entity.Cinema) (*entity.Cinema, error)
- func SelectCinemaName(cinemaId int64) (string, error)
- func SelectCommentTotal() (int64, error)
- func SelectCommentsByCID(page int64, num int64, filmId int64) ([]*entity.Comment, error)
- func SelectCommentsTotalByCID(filmId int64) (int64, error)
- func SelectFilmsID(cinemaID int64) ([]int64, error)
- func SelectFilmsTotal() (int64, error)
- func SelectMovieHallHallName(mhID int64) (string, error)
- func SelectMovieHallTotal() (int64, error)
- func SelectMovieHallTotalByCinemaID(cinemaID int64) (int64, error)
- func SelectOrderByFilmId(page int64, num int64, mhId int64) ([]*entity.Order, error)
- func SelectOrderTotal() (int64, error)
- func SelectOrderTotalByFilmId(filmId int64) (int64, error)
- func SelectPlaceTotal() (int64, error)
- func SelectUserTotal() (int64, error)
- func SelecttAllCinemaFilmTotal() (int64, error)
- func UpdateAdminUser(auID int64, adminName string, adminCinemaID int64) error
- func UpdateCinemaFilm(cinemaFilm *entity.CinemaFilm) error
- func UpdateFilm(film *entity.Film) error
- func UpdateMovieHall(movieHall *entity.MovieHall) error
- func UpdatePlace(place *entity.Place) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAdminUser ¶
func AddAllCinemaFilm ¶
func AddAllCinemaFilm(cinemaFilm *entity.CinemaFilm) error
func AddMovieHall ¶
func DeleteAdminUser ¶
func DeleteCinemaFilm ¶
func DeleteFilm ¶
func DeleteMovieHall ¶
func DeletePlace ¶
func InsertCinema ¶
func InsertFilmActor ¶
func SelectAdminTotal ¶
func SelectAllCinemaFilm ¶
func SelectAllCinemaFilm(page int64, num int64) ([]*entity.CinemaFilm, error)
func SelectAllCinemaFilmByMHID ¶
func SelectAllCinemaFilmByMHID(mhId int64) (*entity.CinemaFilm, error)
func SelectAllMovieHall ¶
func SelectCinemaName ¶
func SelectCommentTotal ¶
func SelectCommentsByCID ¶
func SelectFilmsID ¶
func SelectFilmsTotal ¶
func SelectMovieHallHallName ¶
func SelectMovieHallTotal ¶
func SelectOrderByFilmId ¶
func SelectOrderTotal ¶
func SelectPlaceTotal ¶
func SelectUserTotal ¶
func UpdateAdminUser ¶
func UpdateCinemaFilm ¶
func UpdateCinemaFilm(cinemaFilm *entity.CinemaFilm) error
func UpdateFilm ¶
func UpdateMovieHall ¶
func UpdatePlace ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.