Documentation ¶
Index ¶
- func NewCinemaResponse(combine *pb_catalog_cinema.CinemaCombine, timezone, userTimezone string) *pb_catalog_cinema.CinemaResponse
- func NewCinemaWithCityResponse(combine *pb_catalog_cinema.CinemaCombine, city *pb_catalog_city.CityCombine, ...) interface{}
- func NewCityResponse(combine *pb_catalog_city.CityCombine) *pb_catalog_city.CityResponse
- func NewDiscountResponse(combine *pb_catalog_discount.DiscountCombine) *pb_catalog_discount.DiscountResponse
- func NewHallResponse(combine *pb_catalog_hall.HallCombine) *pb_catalog_hall.HallResponse
- func NewMovieResponse(combine *pb_catalog_movie.MovieCombine, timezone, userTimezone string) *pb_catalog_movie.MovieResponse
- func NewProductPaginateResponse(in []*pb_menu_product.ProductFrontItem, timezone, userTimezone string) interface{}
- func NewScheduleResponse(combine *pb_catalog_schedule.ScheduleCombine) *pb_catalog_schedule.ScheduleResponse
- func NewSeanceResponse(combine *pb_catalog_seance.SeanceCombine, timezone, userTimezone string) *pb_catalog_seance.SeanceResponse
- type Cinema
- type CinemaGalleryResponse
- type City
- type Movie
- type ScheduleSeancesResponse
- type Seance
- type SeanceMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCinemaResponse ¶
func NewCinemaResponse(combine *pb_catalog_cinema.CinemaCombine, timezone, userTimezone string) *pb_catalog_cinema.CinemaResponse
NewCinemaResponse return response
func NewCinemaWithCityResponse ¶ added in v0.14.5
func NewCinemaWithCityResponse(combine *pb_catalog_cinema.CinemaCombine, city *pb_catalog_city.CityCombine, halls []*pb_catalog_hall.HallCombine, timezone, userTimezone string) interface{}
NewCinemaWithCityResponse return response
func NewCityResponse ¶
func NewCityResponse(combine *pb_catalog_city.CityCombine) *pb_catalog_city.CityResponse
func NewDiscountResponse ¶
func NewDiscountResponse(combine *pb_catalog_discount.DiscountCombine) *pb_catalog_discount.DiscountResponse
func NewHallResponse ¶
func NewHallResponse(combine *pb_catalog_hall.HallCombine) *pb_catalog_hall.HallResponse
func NewMovieResponse ¶
func NewMovieResponse(combine *pb_catalog_movie.MovieCombine, timezone, userTimezone string) *pb_catalog_movie.MovieResponse
NewMovieResponse init
func NewProductPaginateResponse ¶
func NewProductPaginateResponse(in []*pb_menu_product.ProductFrontItem, timezone, userTimezone string) interface{}
NewProductPaginateResponse return response
func NewScheduleResponse ¶
func NewScheduleResponse(combine *pb_catalog_schedule.ScheduleCombine) *pb_catalog_schedule.ScheduleResponse
func NewSeanceResponse ¶
func NewSeanceResponse(combine *pb_catalog_seance.SeanceCombine, timezone, userTimezone string) *pb_catalog_seance.SeanceResponse
Types ¶
type Cinema ¶
type Cinema struct { pb_catalog_cinema.CinemaResponse Movies map[int64]Movie }
type CinemaGalleryResponse ¶
type CinemaGalleryResponse struct { SortOrder int64 `json:"sort_order" bson:"sort_order"` Uuid string `json:"uuid" bson:"uuid"` Name string `json:"name" bson:"name"` Code string `json:"code" bson:"code"` Description string `json:"description" bson:"description"` Image string `json:"image" bson:"image"` }
func NewCinemaGalleryResponse ¶
func NewCinemaGalleryResponse(combine *pb_media_gallery.Gallery) *CinemaGalleryResponse
NewCinemaResponse return response
type City ¶
type City struct { pb_catalog_city.CityResponse Cinemas map[int64]Cinema }
type Movie ¶
type Movie struct { pb_catalog_movie.MovieResponse Seances SeanceMap }
type ScheduleSeancesResponse ¶
type ScheduleSeancesResponse struct { CityUUID string `json:"city_uuid"` CinemaUUID string `json:"cinema_uuid"` HallUUID string `json:"hall_uuid"` MovieUUID string `json:"movie_uuid"` SeanceUUID string `json:"seance_uuid"` BasePrice float64 `json:"base_price"` StartDate *time.Time `json:"start_date"` StartTime *time.Time `json:"start_time"` EndTime *time.Time `json:"end_time"` Duration uint32 `json:"duration"` SortOrder int64 `json:"sort_order"` Discounts []*pb_catalog_discount.DiscountResponse `json:"discounts"` Format []string `json:"format"` Language string `json:"language"` IsActive bool `json:"show"` CityName string `json:"city_name"` CinemaName string `json:"cinema_name"` HallName string `json:"hall_name"` HallFormat []string `json:"hall_format"` MovieName string `json:"movie_name"` MovieFormat []string `json:"movie_format"` }
ScheduleSeancesResponse struct
func NewScheduleSeancesResponse ¶
func NewScheduleSeancesResponse(combine *pb_catalog_schedule.ScheduleCombine, timezone string) *ScheduleSeancesResponse
type Seance ¶
type Seance struct { pb_catalog_seance.SeanceResponse HallUUID string `json:"hall_uuid"` HallName string `json:"hall_name"` }
Click to show internal directories.
Click to hide internal directories.