Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMovieNotFound = fiber.NewError(fiber.StatusNotFound, "Movie not found")
View Source
var ErrNoShowtimeFound = fiber.NewError(fiber.StatusNotFound, "Showtime not found")
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func (*Auth) LoginHandler ¶
func (*Auth) RegisterHandler ¶
type LoginPayload ¶
type Movie ¶
type Movie struct {
// contains filtered or unexported fields
}
func NewMovie ¶
func NewMovie(repository *repository.Movie) *Movie
func (*Movie) DeleteById ¶
func (*Movie) UpdateById ¶
type MoviePayload ¶
type MoviePayload struct { Title string `form:"title" validate:"required,min=1,max=254"` Description string `form:"description" validate:"required"` ReleaseDate string `form:"release_date" validate:"required,datetime=2006-01-02"` DurationMinutes int `form:"duration_minutes" validate:"required,min=1"` Director string `form:"director" validate:"required,min=1,max=100"` File *multipart.FileHeader `form:"file" validate:"required"` GenreIDs []int `form:"genre_ids" validate:"required,dive,lte=10"` }
type RegisterPayload ¶
type Reservation ¶
type Reservation struct {
// contains filtered or unexported fields
}
func NewReservation ¶
func NewReservation(repository *repository.Reservation) *Reservation
func (*Reservation) CancelReservation ¶
func (r *Reservation) CancelReservation(c fiber.Ctx) error
func (*Reservation) Create ¶
func (r *Reservation) Create(c fiber.Ctx) error
func (*Reservation) GetAll ¶
func (r *Reservation) GetAll(c fiber.Ctx) error
func (*Reservation) GetUserRervations ¶
func (r *Reservation) GetUserRervations(c fiber.Ctx) error
type Showtime ¶
type Showtime struct {
// contains filtered or unexported fields
}
func NewShowtime ¶
func NewShowtime(repository *repository.Showtime) *Showtime
func (*Showtime) DeleteById ¶
func (*Showtime) UpdateById ¶
type TokenResponse ¶
type TokenResponse struct {
Token string `json:"token"`
}
Click to show internal directories.
Click to hide internal directories.