response

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

Types

type Cinema

type Cinema struct {
	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 CinemaImagesResponse added in v0.15.0

type CinemaImagesResponse struct {
	Vertical   string `json:"vertical"`
	Horizontal string `json:"horizontal"`
}

type CinemaResponse added in v0.15.0

type CinemaResponse struct {
	Uuid        string                `json:"uuid"`
	Name        string                `json:"name"`
	Code        string                `json:"code"`
	Description string                `json:"description"`
	SortOrder   int64                 `json:"sort_order"`
	IsActive    bool                  `json:"is_active"`
	Address     string                `json:"address"`
	Phones      []string              `json:"phones"`
	Url         string                `json:"url"`
	Longitude   float64               `json:"longitude"`
	Latitude    float64               `json:"latitude"`
	City        *CityResponse         `json:"city"`
	Images      *CinemaImagesResponse `json:"images"`
	Features    []string              `json:"features"`
	OpeningDate *time.Time            `json:"opening_date"`
}

func NewCinemaResponse

func NewCinemaResponse(combine *pb_catalog_cinema.CinemaCombine, timezone, userTimezone string) *CinemaResponse

NewCinemaResponse return response

type City

type City struct {
	CityResponse
	Cinemas map[int64]Cinema
}

type CityResponse added in v0.15.0

type CityResponse struct {
	Uuid        string `json:"uuid"`
	Name        string `json:"name"`
	Code        string `json:"code"`
	Description string `json:"description"`
	SortOrder   int64  `json:"sort_order"`
	IsActive    bool   `json:"is_active"`
	Location    string `json:"location"`
}

CityResponse ...

func NewCityResponse

func NewCityResponse(combine *pb_catalog_city.CityCombine) *CityResponse

NewCityResponse ...

type DiscountResponse added in v0.15.0

type DiscountResponse struct {
	Uuid      string  `json:"uuid"`
	Name      string  `json:"name"`
	Code      string  `json:"code"`
	SortOrder int64   `json:"sort_order"`
	IsActive  bool    `json:"is_active"`
	IsShow    bool    `json:"is_show"`
	Value     float64 `json:"value"`
}

type HallResponse added in v0.15.0

type HallResponse struct {
	Uuid           string   `json:"uuid"`
	Name           string   `json:"name"`
	Code           string   `json:"code"`
	Description    string   `json:"description"`
	SortOrder      int64    `json:"sort_order"`
	IsActive       bool     `json:"is_active"`
	IsBottomScreen bool     `json:"is_bottom_screen"`
	Format         []string `json:"format"`
	SoundSystem    string   `json:"sound_system"`
	SeatCount      int64    `json:"seat_count"`
	Projector      string   `json:"projector"`
}

func NewHallResponse

func NewHallResponse(combine *pb_catalog_hall.HallCombine) *HallResponse

type Movie

type Movie struct {
	MovieResponse
	Seances SeanceMap
}

type MovieImages added in v0.15.0

type MovieImages struct {
	Vertical   string `json:"vertical"`
	Horizontal string `json:"horizontal"`
}

type MovieRating added in v0.15.0

type MovieRating struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type MovieResponse added in v0.15.0

type MovieResponse struct {
	Uuid              string         `json:"uuid"`
	Name              string         `json:"name"`
	Code              string         `json:"code"`
	Description       string         `json:"description"`
	SortOrder         int64          `json:"sort_order"`
	IsActive          bool           `json:"is_active"`
	ReleaseDate       *time.Time     `json:"release_date"`
	Duration          uint32         `json:"duration"`
	Actors            []string       `json:"actors"`
	Directors         []string       `json:"directors"`
	Countries         []string       `json:"countries"`
	Genre             []string       `json:"genre"`
	AgeLimitationText string         `json:"age_limitation_text"`
	TrailerLink       string         `json:"trailer_link"`
	IsNew             bool           `json:"is_new"`
	TmdbId            uint64         `json:"tmdb_id"`
	Images            *MovieImages   `json:"images"`
	Format            []string       `json:"format"`
	Rating            []*MovieRating `json:"rating"`
}

func NewMovieResponse

func NewMovieResponse(combine *pb_catalog_movie.MovieCombine, timezone, userTimezone string) *MovieResponse

NewMovieResponse init

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 []*DiscountResponse `json:"discounts"`
	Format    []string            `json:"format"`
	Language  string              `json:"language"`
	IsActive  bool                `json:"is_active"`

	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 {
	SeanceResponse
	HallUuid string `json:"hall_uuid"`
	HallName string `json:"hall_name"`
}

type SeanceMap

type SeanceMap map[int64]Seance

type SeanceResponse added in v0.15.0

type SeanceResponse struct {
	Uuid               string              `json:"uuid"`
	Name               string              `json:"name"`
	Code               string              `json:"code"`
	Description        string              `json:"description"`
	SortOrder          int64               `json:"sort_order"`
	IsActive           bool                `json:"is_active"`
	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"`
	IsPremiere         bool                `json:"is_premiere"`
	Is3D               bool                `json:"is_3d"`
	IsReservingEnabled bool                `json:"is_reserving_enabled"`
	CityUuid           string              `json:"city_uuid"`
	CinemaUuid         string              `json:"cinema_uuid"`
	HallUuid           string              `json:"hall_uuid"`
	MovieUuid          string              `json:"movie_uuid"`
	Discounts          []*DiscountResponse `json:"discounts"`
	Format             []string            `json:"format"`
	Language           string              `json:"language"`
}

func NewSeanceResponse

func NewSeanceResponse(combine *pb_catalog_seance.SeanceCombine, timezone, userTimezone string) *SeanceResponse

Jump to

Keyboard shortcuts

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