Documentation ¶
Index ¶
- func Init(s micro.Service, c *dig.Container) error
- type BookingHandler
- func (h *BookingHandler) Create(ctx context.Context, req *pb_booking.CreateRequest, ...) error
- func (h *BookingHandler) CreateMenu(ctx context.Context, req *pb_booking.CreateRequest, ...) error
- func (h *BookingHandler) CustomerUpdate(ctx context.Context, req *pb_booking.CustomerUpdateRequest, ...) error
- func (h *BookingHandler) Status(ctx context.Context, req *pb_booking.Request, rsp *pb_shared.StatusResponse) error
- type DetailHandler
- type OrderHandler
- func (h *OrderHandler) Create(ctx context.Context, req *pb_order.Request, rsp *pb_order.Response) error
- func (h *OrderHandler) Delete(ctx context.Context, req *pb_order.Request, rsp *empty.Empty) error
- func (h *OrderHandler) Get(ctx context.Context, req *pb_order.Request, rsp *pb_order.Response) error
- func (h *OrderHandler) Paginate(ctx context.Context, req *pb_order.PaginateRequest, ...) error
- func (h *OrderHandler) Update(ctx context.Context, req *pb_order.Request, rsp *pb_order.Response) error
- type PaymentHandler
- func (h *PaymentHandler) Cancel(ctx context.Context, req *pb_payment.Request, rsp *pb_shared.StatusResponse) error
- func (h *PaymentHandler) Create(ctx context.Context, req *pb_payment.CreateRequest, ...) error
- func (h *PaymentHandler) Finish(ctx context.Context, req *pb_payment.Request, rsp *pb_shared.StatusResponse) error
- func (h *PaymentHandler) Get(ctx context.Context, req *pb_payment.Request, rsp *pb_payment.Response) error
- func (h *PaymentHandler) GetStatus(ctx context.Context, req *pb_payment.Request, rsp *pb_shared.StatusResponse) error
- func (h *PaymentHandler) Refund(ctx context.Context, req *pb_payment.RefundRequest, ...) error
- type ReservationHandler
- func (h *ReservationHandler) Clear(ctx context.Context, req *pb_reservation.Request, ...) error
- func (h *ReservationHandler) DiscountApply(ctx context.Context, req *pb_reservation.Request, ...) error
- func (h *ReservationHandler) GetQrcode(ctx context.Context, req *pb_reservation.Request, ...) error
- func (h *ReservationHandler) Hold(ctx context.Context, req *pb_reservation.Request, ...) error
- func (h *ReservationHandler) Payed(ctx context.Context, req *pb_reservation.Request, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BookingHandler ¶
type BookingHandler struct {
// contains filtered or unexported fields
}
BookingHandler ...
func NewBookingHandler ¶
func NewBookingHandler( order service.OrderService, detail service.DetailService, reservation service.ReservationService, payment service.PaymentService, seat service.SeatService, notify *plugin_notifier_notify.Plugin, clnt client.Client, ) *BookingHandler
NewBookingHandler ...
func (*BookingHandler) Create ¶
func (h *BookingHandler) Create(ctx context.Context, req *pb_booking.CreateRequest, rsp *pb_shared.StatusResponse) error
Create ...
func (*BookingHandler) CreateMenu ¶ added in v2.5.0
func (h *BookingHandler) CreateMenu(ctx context.Context, req *pb_booking.CreateRequest, rsp *pb_shared.StatusResponse) error
CreateMenu ...
func (*BookingHandler) CustomerUpdate ¶
func (h *BookingHandler) CustomerUpdate(ctx context.Context, req *pb_booking.CustomerUpdateRequest, rsp *pb_shared.StatusResponse) error
CustomerUpdate ...
func (*BookingHandler) Status ¶
func (h *BookingHandler) Status(ctx context.Context, req *pb_booking.Request, rsp *pb_shared.StatusResponse) error
Status ...
type DetailHandler ¶ added in v2.5.0
type DetailHandler struct {
// contains filtered or unexported fields
}
DetailHandler ...
func NewDetailHandler ¶ added in v2.5.0
func NewDetailHandler( detail service.DetailService, notify *plugin_notifier_notify.Plugin, ) *DetailHandler
NewDetailHandler ...
func (*DetailHandler) Get ¶ added in v2.5.0
func (h *DetailHandler) Get(ctx context.Context, req *pb_detail.GetRequest, rsp *pb_detail.GetResponse) error
Get ...
type OrderHandler ¶
type OrderHandler struct {
// contains filtered or unexported fields
}
OrderHandler ...
func NewOrderHandler ¶
func NewOrderHandler( order service.OrderService, notify *plugin_notifier_notify.Plugin, ) *OrderHandler
NewOrderHandler ...
func (*OrderHandler) Create ¶ added in v2.8.0
func (h *OrderHandler) Create(ctx context.Context, req *pb_order.Request, rsp *pb_order.Response) error
Create ...
func (*OrderHandler) Get ¶
func (h *OrderHandler) Get(ctx context.Context, req *pb_order.Request, rsp *pb_order.Response) error
Get ...
func (*OrderHandler) Paginate ¶
func (h *OrderHandler) Paginate(ctx context.Context, req *pb_order.PaginateRequest, rsp *pb_order.PaginateResponse) error
Paginate ...
type PaymentHandler ¶
type PaymentHandler struct {
// contains filtered or unexported fields
}
PaymentHandler ...
func NewPaymentHandler ¶
func NewPaymentHandler( payment service.PaymentService, order service.OrderService, detail service.DetailService, notify *plugin_notifier_notify.Plugin, ) *PaymentHandler
NewPaymentHandler ...
func (*PaymentHandler) Cancel ¶
func (h *PaymentHandler) Cancel(ctx context.Context, req *pb_payment.Request, rsp *pb_shared.StatusResponse) error
Cancel ...
func (*PaymentHandler) Create ¶
func (h *PaymentHandler) Create(ctx context.Context, req *pb_payment.CreateRequest, rsp *pb_payment.CreateResponse) error
Create ...
func (*PaymentHandler) Finish ¶
func (h *PaymentHandler) Finish(ctx context.Context, req *pb_payment.Request, rsp *pb_shared.StatusResponse) error
Finish ...
func (*PaymentHandler) Get ¶ added in v2.9.0
func (h *PaymentHandler) Get(ctx context.Context, req *pb_payment.Request, rsp *pb_payment.Response) error
Get ...
func (*PaymentHandler) GetStatus ¶
func (h *PaymentHandler) GetStatus(ctx context.Context, req *pb_payment.Request, rsp *pb_shared.StatusResponse) error
GetStatus ...
func (*PaymentHandler) Refund ¶
func (h *PaymentHandler) Refund(ctx context.Context, req *pb_payment.RefundRequest, rsp *pb_shared.StatusResponse) error
Refund ...
type ReservationHandler ¶
type ReservationHandler struct {
// contains filtered or unexported fields
}
ReservationHandler ...
func NewReservationHandler ¶
func NewReservationHandler( clnt client.Client, reservation service.ReservationService, order service.OrderService, notify *plugin_notifier_notify.Plugin, ) *ReservationHandler
NewReservationHandler ...
func (*ReservationHandler) Clear ¶
func (h *ReservationHandler) Clear(ctx context.Context, req *pb_reservation.Request, rsp *pb_shared.StatusResponse) error
Clear ...
func (*ReservationHandler) DiscountApply ¶ added in v2.8.0
func (h *ReservationHandler) DiscountApply(ctx context.Context, req *pb_reservation.Request, rsp *pb_shared.StatusResponse) error
Clear ...
func (*ReservationHandler) GetQrcode ¶
func (h *ReservationHandler) GetQrcode(ctx context.Context, req *pb_reservation.Request, rsp *pb_reservation.GetQrcodeResponse) error
GetQrcode ...
func (*ReservationHandler) Hold ¶
func (h *ReservationHandler) Hold(ctx context.Context, req *pb_reservation.Request, rsp *pb_shared.StatusResponse) error
Hold ...
func (*ReservationHandler) Payed ¶
func (h *ReservationHandler) Payed(ctx context.Context, req *pb_reservation.Request, rsp *pb_shared.StatusResponse) error
Payed ...
Click to show internal directories.
Click to hide internal directories.