Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CinemaService ¶
CinemaService interface
func NewCinemaService ¶
func NewCinemaService( pluginClientSoapWP *plugin_client_soap_wp.Plugin, pluginCache *cache.Cache, ) CinemaService
NewCinemaService init
type CommonService ¶
CommonService interface
func NewCommonService ¶
func NewCommonService(pluginClientSoapWP *plugin_client_soap_wp.Plugin) CommonService
NewCommonService init
type DiscountService ¶ added in v0.2.0
type DiscountService interface {
Apply(data *pb_discount.ApplyRequest) error
}
DiscountService interface
func NewDiscountService ¶ added in v0.2.0
func NewDiscountService(pluginDatabaseGorm *plugin_database_gorm.Plugin) DiscountService
NewDiscountService init
type ReservationService ¶
type ReservationService interface { ReserveSeats(cinemaId, seanceId, containerId int64, cardNumber string, seats string, customerId int64) (*pb_reservation.ReserveResponse_Data, error) Payed(cinemaId, reservationId int64, sum float64) (*pb_reservation.PayedResponse_Data, error) PayedWithContract(cinemaId, reservationId, contractId int64, sum float64) (*pb_reservation.PayedResponse_Data, error) SellReservation(cinemaId, reservationId int64) (*pb_reservation.SellResponse_Data, error) InfoByNumber(cinemaId int64, reservationNumber string) (*pb_reservation.InfoByNumberResponse_Data, error) InfoByNumberFromDB(reservationNumber string) ([]*pb_reservation.InfoByNumberFromDBResponse_Data, error) InfoByIdFromDB(id int64) (*pb_reservation.InfoByIdFromDBResponse_Data, error) ClearReservedSeats(cinemaId int64, reservationNumber, cardNumber string) error Check(id int64) (pb_shared.EnumReservationStatus, error) }
ReservationService interface
func NewReservationService ¶
func NewReservationService( pluginClientSoapWP *plugin_client_soap_wp.Plugin, pluginDatabaseGorm *plugin_database_gorm.Plugin, ) ReservationService
NewReservationService init
type SeanceService ¶
type SeanceService interface { Availability(cinemaId, seanceId int64) (*pb_seance.AvailabilityResponse_Data, error) HallScheme(cinemaId, seanceId, containerId int64) ([]*pb_hall.Seat, error) HallSeatStatus(cinemaId, seanceId, containerId int64) ([]*pb_hall.Seat, error) HallStructure(cinemaId, seanceId, containerId int64) (*pb_seance.HallStructureResponse_Data, error) HallMap(cinemaId, seanceId, containerId int64) (*pb_seance.HallMapResponse_Data, error) Prices(cinemaId, seanceId, containerId int64) ([]*pb_seance.ZonePrice, error) }
SeanceService interface
func NewSeanceService ¶
func NewSeanceService( pluginClientSoapWP *plugin_client_soap_wp.Plugin, pluginCache *cache.Cache, ) SeanceService
NewSeanceService init
type Service ¶
type Service struct { ServiceName string `mapstructure:"service_name"` Common struct { RPC pb_common.CommonService Version opts `mapstructure:"version"` } `mapstructure:"common"` Cinema struct { RPC pb_cinema.CinemaService Halls opts `mapstructure:"halls"` } `mapstructure:"cinema"` Seance struct { RPC pb_seance.SeanceService Availability opts `mapstructure:"availability"` HallScheme opts `mapstructure:"hall_scheme"` HallSeatStatus opts `mapstructure:"hall_seat_status"` HallStructure opts `mapstructure:"hall_structure"` HallMap opts `mapstructure:"hall_map"` Prices opts `mapstructure:"prices"` } `mapstructure:"seance"` Reservation struct { RPC pb_reservation.ReservationService Reserve opts `mapstructure:"reserve"` Payed opts `mapstructure:"payed"` PayedWithContract opts `mapstructure:"payed_with_contract"` Sell opts `mapstructure:"sell"` InfoByNumber opts `mapstructure:"info_by_number"` InfoByNumberFromDB opts `mapstructure:"info_by_number_from_db"` InfoByIdFromDB opts `mapstructure:"info_by_id_from_db"` Clear opts `mapstructure:"clear"` Check opts `mapstructure:"check"` } `mapstructure:"reservation"` Discount struct { RPC pb_discount.DiscountService Apply opts `mapstructure:"apply"` } `mapstructure:"discount"` }
Click to show internal directories.
Click to hide internal directories.