Documentation ¶
Index ¶
- func CreateCampaignCustomerHandler(c *gin.Context)
- func CreateCampaignHandler(c *gin.Context)
- func CreateCustomerHandler(c *gin.Context)
- func CreateEmailTemplateHandler(c *gin.Context)
- func CreateStageHandler(c *gin.Context)
- func CreateStepHandler(c *gin.Context)
- func CreateUserHandler(c *gin.Context)
- func DeleteCampaignCustomerHandler(c *gin.Context)
- func DeleteCampaignHandler(c *gin.Context)
- func DeleteCustomerHandler(c *gin.Context)
- func DeleteEmailTemplateHandler(c *gin.Context)
- func DeleteStageHandler(c *gin.Context)
- func DeleteStepHandler(c *gin.Context)
- func DeleteUserHandler(c *gin.Context)
- func GetCampaignCustomerHandler(c *gin.Context)
- func GetCampaignCustomersHandler(c *gin.Context)
- func GetCampaignHandler(c *gin.Context)
- func GetCampaignsHandler(c *gin.Context)
- func GetCustomerHandler(c *gin.Context)
- func GetCustomersHandler(c *gin.Context)
- func GetEmailTemplateHandler(c *gin.Context)
- func GetEmailTemplatesHandler(c *gin.Context)
- func GetSettingsHandler(c *gin.Context)
- func GetStageHandler(c *gin.Context)
- func GetStagesHandler(c *gin.Context)
- func GetStepHandler(c *gin.Context)
- func GetStepsHandler(c *gin.Context)
- func GetUserHandler(c *gin.Context)
- func GetUsersHandler(c *gin.Context)
- func LoginHandler(c *gin.Context)
- func SendEmailHandler(c *gin.Context)
- func UpdateCampaignCustomerHandler(c *gin.Context)
- func UpdateCampaignHandler(c *gin.Context)
- func UpdateCustomerHandler(c *gin.Context)
- func UpdateEmailTemplateHandler(c *gin.Context)
- func UpdateSettingsHandler(c *gin.Context)
- func UpdateStageHandler(c *gin.Context)
- func UpdateStepHandler(c *gin.Context)
- func UpdateUserHandler(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCampaignCustomerHandler ¶
CreateCampaignCustomerHandler creates a new campaign customer @Summary Create a campaign customer @Description Create a new campaign customer @Tags CampaignCustomers @Accept json @Produce json @Param campaignCustomer body models.CampaignCustomer true "Campaign customer data" @Success 201 {object} models.CampaignCustomer @Failure 400 {object} models.ErrorResponse @Failure 500 {object} models.ErrorResponse @Router /campaign-customers [post]
func CreateCampaignHandler ¶
CreateCampaignHandler creates a new drip campaign @Summary Create a campaign @Description Create a new drip campaign @Tags Campaigns @Accept json @Produce json @Param campaign body models.DripCampaign true "Campaign data" @Success 201 {object} models.DripCampaign @Failure 400 {object} models.ErrorResponse @Failure 500 {object} models.ErrorResponse @Router /campaigns [post]
func CreateCustomerHandler ¶
CreateCustomerHandler creates a new customer @Summary Create a customer @Description Create a new customer @Tags Customers @Accept json @Produce json @Param customer body models.Customer true "Customer data" @Success 201 {object} models.Customer @Failure 400 {object} models.ErrorResponse @Failure 500 {object} models.ErrorResponse @Router /customers [post]
func CreateEmailTemplateHandler ¶
CreateEmailTemplateHandler creates a new email template @Summary Create an email template @Description Create a new email template @Tags EmailTemplates @Accept json @Produce json @Param emailTemplate body models.EmailTemplate true "Email template data" @Success 201 {object} models.EmailTemplate @Failure 400 {object} models.ErrorResponse @Failure 500 {object} models.ErrorResponse @Router /email-templates [post]
func CreateStageHandler ¶
CreateStageHandler creates a new stage @Summary Create a stage @Description Create a new stage @Tags Stages @Accept json @Produce json @Param stage body models.Stage true "Stage data" @Success 201 {object} models.Stage @Failure 400 {object} models.ErrorResponse @Failure 500 {object} models.ErrorResponse @Router /stages [post]
func CreateStepHandler ¶
CreateStepHandler creates a new step @Summary Create a step @Description Create a new step @Tags Steps @Accept json @Produce json @Param step body models.Step true "Step data" @Success 201 {object} models.Step @Failure 400 {object} models.ErrorResponse @Failure 500 {object} models.ErrorResponse @Router /steps [post]
func CreateUserHandler ¶
CreateUserHandler creates a new user
func DeleteCampaignCustomerHandler ¶
DeleteCampaignCustomerHandler deletes a specific campaign customer by ID @Summary Delete a campaign customer @Description Delete a specific campaign customer by ID @Tags CampaignCustomers @Produce json @Param id path int true "Campaign customer ID" @Success 200 {object} models.SuccessResponse @Failure 404 {object} models.ErrorResponse @Failure 500 {object} models.ErrorResponse @Router /campaign-customers/{id} [delete]
func DeleteCampaignHandler ¶
DeleteCampaignHandler deletes a specific drip campaign by ID @Summary Delete a campaign @Description Delete a specific drip campaign by ID @Tags Campaigns @Produce json @Param id path int true "Campaign ID" @Success 200 {object} models.SuccessResponse @Failure 404 {object} models.ErrorResponse @Failure 500 {object} models.ErrorResponse @Router /campaigns/{id} [delete]
func DeleteCustomerHandler ¶
DeleteCustomerHandler deletes a specific customer by ID @Summary Delete a customer @Description Delete a specific customer by ID @Tags Customers @Produce json @Param id path int true "Customer ID" @Success 200 {object} models.SuccessResponse @Failure 404 {object} models.ErrorResponse @Failure 500 {object} models.ErrorResponse @Router /customers/{id} [delete]
func DeleteEmailTemplateHandler ¶
DeleteEmailTemplateHandler deletes a specific email template by ID @Summary Delete an email template @Description Delete a specific email template by ID @Tags EmailTemplates @Produce json @Param id path int true "Email template ID" @Success 200 {object} models.SuccessResponse @Failure 404 {object} models.ErrorResponse @Failure 500 {object} models.ErrorResponse @Router /email-templates/{id} [delete]
func DeleteStageHandler ¶
DeleteStageHandler deletes a specific stage by ID @Summary Delete a stage @Description Delete a specific stage by ID @Tags Stages @Produce json @Param id path int true "Stage ID" @Success 200 {object} models.SuccessResponse @Failure 404 {object} models.ErrorResponse @Failure 500 {object} models.ErrorResponse @Router /stages/{id} [delete]
func DeleteStepHandler ¶
DeleteStepHandler deletes a specific step by ID @Summary Delete a step @Description Delete a specific step by ID @Tags Steps @Produce json @Param id path int true "Step ID" @Success 200 {object} models.SuccessResponse @Failure 404 {object} models.ErrorResponse @Failure 500 {object} models.ErrorResponse @Router /steps/{id} [delete]
func DeleteUserHandler ¶
DeleteUserHandler deletes a specific user by ID
func GetCampaignCustomerHandler ¶
GetCampaignCustomerHandler retrieves a specific campaign customer by ID @Summary Get a campaign customer @Description Retrieve a specific campaign customer by ID @Tags CampaignCustomers @Produce json @Param id path int true "Campaign customer ID" @Success 200 {object} models.CampaignCustomer @Failure 404 {object} models.ErrorResponse @Router /campaign-customers/{id} [get]
func GetCampaignCustomersHandler ¶
GetCampaignCustomersHandler retrieves all campaign customers @Summary Get all campaign customers @Description Retrieve all campaign customers @Tags CampaignCustomers @Produce json @Success 200 {array} models.CampaignCustomer @Failure 500 {object} models.ErrorResponse @Router /campaign-customers [get]
func GetCampaignHandler ¶
GetCampaignHandler retrieves a specific drip campaign by ID @Summary Get a campaign @Description Retrieve a specific drip campaign by ID @Tags Campaigns @Produce json @Param id path int true "Campaign ID" @Success 200 {object} models.DripCampaign @Failure 404 {object} models.ErrorResponse @Router /campaigns/{id} [get]
func GetCampaignsHandler ¶
GetCampaignsHandler retrieves all drip campaigns @Summary Get all campaigns @Description Retrieve all drip campaigns @Tags Campaigns @Produce json @Success 200 {array} models.DripCampaign @Failure 500 {object} models.ErrorResponse @Router /campaigns [get]
func GetCustomerHandler ¶
GetCustomerHandler retrieves a specific customer by ID @Summary Get a customer @Description Retrieve a specific customer by ID @Tags Customers @Produce json @Param id path int true "Customer ID" @Success 200 {object} models.Customer @Failure 404 {object} models.ErrorResponse @Router /customers/{id} [get]
func GetCustomersHandler ¶
GetCustomersHandler retrieves all customers @Summary Get all customers @Description Retrieve all customers @Tags Customers @Produce json @Success 200 {array} models.Customer @Failure 500 {object} models.ErrorResponse @Router /customers [get]
func GetEmailTemplateHandler ¶
func GetEmailTemplatesHandler ¶
GetEmailTemplatesHandler retrieves all email templates @Summary Get all email templates @Description Retrieve all email templates @Tags EmailTemplates @Produce json @Success 200 {array} models.EmailTemplate @Failure 500 {object} models.ErrorResponse @Router /email-templates [get]
func GetSettingsHandler ¶
GetSettingsHandler retrieves the user settings @Summary Get settings @Description Retrieve the user settings @Tags Settings @Produce json @Success 200 {object} models.Settings @Failure 404 {object} models.ErrorResponse @Router /settings [get]
func GetStageHandler ¶
GetStageHandler retrieves a specific stage by ID @Summary Get a stage @Description Retrieve a specific stage by ID @Tags Stages @Produce json @Param id path int true "Stage ID" @Success 200 {object} models.Stage @Failure 404 {object} models.ErrorResponse @Router /stages/{id} [get]
func GetStagesHandler ¶
GetStagesHandler retrieves all stages @Summary Get all stages @Description Retrieve all stages @Tags Stages @Produce json @Success 200 {array} models.Stage @Failure 500 {object} models.ErrorResponse @Router /stages [get]
func GetStepHandler ¶
GetStepHandler retrieves a specific step by ID @Summary Get a step @Description Retrieve a specific step by ID @Tags Steps @Produce json @Param id path int true "Step ID" @Success 200 {object} models.Step @Failure 404 {object} models.ErrorResponse @Router /steps/{id} [get]
func GetStepsHandler ¶
GetStepsHandler retrieves all steps @Summary Get all steps @Description Retrieve all steps @Tags Steps @Produce json @Success 200 {array} models.Step @Failure 500 {object} models.ErrorResponse @Router /steps [get]
func GetUserHandler ¶
GetUserHandler retrieves a specific user by ID
func LoginHandler ¶
LoginHandler authenticates user credentials and generates a JWT token @Summary User login @Description Authenticate user credentials and generate a JWT token @Tags Auth @Accept json @Produce json @Param credentials body models.LoginRequest true "User credentials" @Success 200 {object} models.TokenResponse @Failure 400 {object} models.ErrorResponse @Failure 401 {object} models.ErrorResponse @Router /login [post]
func SendEmailHandler ¶
SendEmailHandler sends an email using Gmail SMTP with simple authentication @Summary Send an email @Description Send an email using Gmail SMTP with simple authentication @Tags Email @Accept json @Produce json @Param emailRequest body models.EmailRequest true "Email request data" @Success 200 {object} models.SuccessResponse @Failure 400 {object} models.ErrorResponse @Failure 500 {object} models.ErrorResponse @Router /send-email [post]
func UpdateCampaignCustomerHandler ¶
UpdateCampaignCustomerHandler updates a specific campaign customer by ID @Summary Update a campaign customer @Description Update a specific campaign customer by ID @Tags CampaignCustomers @Accept json @Produce json @Param id path int true "Campaign customer ID" @Param campaignCustomer body models.CampaignCustomer true "Updated campaign customer data" @Success 200 {object} models.CampaignCustomer @Failure 400 {object} models.ErrorResponse @Failure 404 {object} models.ErrorResponse @Failure 500 {object} models.ErrorResponse @Router /campaign-customers/{id} [put]
func UpdateCampaignHandler ¶
UpdateCampaignHandler updates a specific drip campaign by ID @Summary Update a campaign @Description Update a specific drip campaign by ID @Tags Campaigns @Accept json @Produce json @Param id path int true "Campaign ID" @Param campaign body models.DripCampaign true "Updated campaign data" @Success 200 {object} models.DripCampaign @Failure 400 {object} models.ErrorResponse @Failure 404 {object} models.ErrorResponse @Failure 500 {object} models.ErrorResponse @Router /campaigns/{id} [put]
func UpdateCustomerHandler ¶
UpdateCustomerHandler updates a specific customer by ID @Summary Update a customer @Description Update a specific customer by ID @Tags Customers @Accept json @Produce json @Param id path int true "Customer ID" @Param customer body models.Customer true "Updated customer data" @Success 200 {object} models.Customer @Failure 400 {object} models.ErrorResponse @Failure 404 {object} models.ErrorResponse @Failure 500 {object} models.ErrorResponse @Router /customers/{id} [put]
func UpdateEmailTemplateHandler ¶
UpdateEmailTemplateHandler updates a specific email template by ID @Summary Update an email template @Description Update a specific email template by ID @Tags EmailTemplates @Accept json @Produce json @Param id path int true "Email template ID" @Param emailTemplate body models.EmailTemplate true "Updated email template data" @Success 200 {object} models.EmailTemplate @Failure 400 {object} models.ErrorResponse @Failure 404 {object} models.ErrorResponse @Failure 500 {object} models.ErrorResponse @Router /email-templates/{id} [put]
func UpdateSettingsHandler ¶
UpdateSettingsHandler updates the user settings @Summary Update settings @Description Update the user settings @Tags Settings @Accept json @Produce json @Param settings body models.Settings true "Updated settings data" @Success 200 {object} models.Settings @Failure 400 {object} models.ErrorResponse @Failure 500 {object} models.ErrorResponse @Router /settings [put]
func UpdateStageHandler ¶
UpdateStageHandler updates a specific stage by ID @Summary Update a stage @Description Update a specific stage by ID @Tags Stages @Accept json @Produce json @Param id path int true "Stage ID" @Param stage body models.Stage true "Updated stage data" @Success 200 {object} models.Stage @Failure 400 {object} models.ErrorResponse @Failure 404 {object} models.ErrorResponse @Failure 500 {object} models.ErrorResponse @Router /stages/{id} [put]
func UpdateStepHandler ¶
UpdateStepHandler updates a specific step by ID @Summary Update a step @Description Update a specific step by ID @Tags Steps @Accept json @Produce json @Param id path int true "Step ID" @Param step body models.Step true "Updated step data" @Success 200 {object} models.Step @Failure 400 {object} models.ErrorResponse @Failure 404 {object} models.ErrorResponse @Failure 500 {object} models.ErrorResponse @Router /steps/{id} [put]
func UpdateUserHandler ¶
UpdateUserHandler updates a specific user by ID
Types ¶
This section is empty.