Documentation ¶
Index ¶
- func AddMovies(context *gin.Context)
- func AddScreens(context *gin.Context)
- func AddSeats(context *gin.Context)
- func AddShowsInTheatre(context *gin.Context)
- func AddTheaters(context *gin.Context)
- func BookTicket(context *gin.Context)
- func CreateCities(context *gin.Context)
- func GetMovies(context *gin.Context)
- func GetSeatsForTheater(context *gin.Context)
- func GetShowsForTheatre(context *gin.Context)
- func GetTheatresByCity(context *gin.Context)
- func GetUserTickets(context *gin.Context)
- func LoginUser(context *gin.Context)
- func LogoutUser(context *gin.Context)
- func RegisterUser(context *gin.Context)
- func ShowCities(context *gin.Context)
- func ShowScreens(context *gin.Context)
- func ShowTheaters(context *gin.Context)
- func ValidateLogin(handlerFunc gin.HandlerFunc) func(ctx *gin.Context)
- type AddSeatsRequest
- type BookSeatRequest
- type ScreenSeats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddScreens ¶
func AddShowsInTheatre ¶
func AddTheaters ¶
func BookTicket ¶
func CreateCities ¶
func GetSeatsForTheater ¶
func GetShowsForTheatre ¶
func GetTheatresByCity ¶
func GetUserTickets ¶
func LogoutUser ¶
LogoutUser method logs out the user by deleting the cookie
func RegisterUser ¶
func ShowCities ¶
func ShowScreens ¶
func ShowTheaters ¶
func ValidateLogin ¶
func ValidateLogin(handlerFunc gin.HandlerFunc) func(ctx *gin.Context)
ValidateLogin is the middleware.
Types ¶
type AddSeatsRequest ¶
type AddSeatsRequest struct { TheaterCompReferId uint32 `json:"theaterId"` ScreenSeats []ScreenSeats `json:"screenSeats"` }
type BookSeatRequest ¶
type ScreenSeats ¶
Click to show internal directories.
Click to hide internal directories.