Schedule Handler Documentation
This code defines a ScheduleHandler
struct that handles various schedule-related HTTP requests. It uses the Echo framework for routing and handling HTTP requests and responses.
ScheduleHandler
struct
type ScheduleHandler struct {
medahandler.MedaHandler
}
medahandler.MedaHandler
: Embeds theMedaHandler
struct from themedahandler
package.
Functions
NewScheduleHandler
func NewScheduleHandler() medahandler.MedaHandlerContract
Creates a new ScheduleHandler
instance.
BindRouter
func (h *ScheduleHandler) BindRouter(pbx *core.ServeEvent) error
Binds the handler's routes to the Echo router.
CreateSchedule
func (h *ScheduleHandler) CreateSchedule(c echo.Context) error
Creates a new schedule and returns the result as a JSON response.
UpdateSchedule
func (h *ScheduleHandler) UpdateSchedule(c echo.Context) error
Updates an existing schedule and returns the result as a JSON response.