response

package
v0.14.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2020 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

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 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 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"`
}

type SeanceMap

type SeanceMap map[int64]Seance

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL