Documentation
¶
Index ¶
- Constants
- func OnDelete(f DeleteFn)
- func OnGet(f GetFn)
- func OnGetTemplate(f GetTemplateFn)
- func OnSet(f SetFn)
- func SendEmail(tenantId, serviceId string, from et.Json, to []et.Json, subject string, ...) (et.Items, error)
- func SendEmailByTemplateId(tenantId, serviceId string, from et.Json, to []et.Json, subject string, ...) (et.Items, error)
- func SendOTPByTemplateId(tenantId, serviceId string, from et.Json, name, email string, length int, ...) (et.Items, error)
- func SendOTPEmail(tenantId, serviceId string, from et.Json, name, email string, length int, ...) (et.Items, error)
- func SendOTPSMS(tenantId, serviceId, sender, countryCode, phoneNumber string, length int, ...) (et.Items, error)
- func SendSms(tenantId, serviceId string, contactNumbers []string, content string, ...) (et.Items, error)
- func SendWhatsapp(tenantId, serviceId, templateId string, contactNumbers []string, ...) (et.Items, error)
- func VerifyOTP(channel string, otp, createdBy string) (bool, error)
- type DeleteFn
- type GetFn
- type GetTemplateFn
- type SetFn
- type TpMessage
Constants ¶
const ( SERVICE_SMS = "sms" SERVICE_WHATSAPP = "whatsapp" SERVICE_EMAIL = "email" SERVICE_OTP_SMS = "otp_sms" SERVICE_OTP_EMAIL = "otp_email" )
Variables ¶
This section is empty.
Functions ¶
func OnGetTemplate ¶ added in v1.0.11
func OnGetTemplate(f GetTemplateFn)
func SendEmail ¶
func SendEmail(tenantId, serviceId string, from et.Json, to []et.Json, subject string, htmlContent string, params et.Json, tp TpMessage, createdBy string) (et.Items, error)
* * SendEmail * @param tenantId, serviceId string, from et.Json, to []et.Json, subject string, htmlContent string, params []et.Json, tp TpMessage, createdBy string * @response et.Items, error *
func SendEmailByTemplateId ¶ added in v1.0.11
func SendEmailByTemplateId(tenantId, serviceId string, from et.Json, to []et.Json, subject string, templateId string, params et.Json, tp TpMessage, createdBy string) (et.Items, error)
* * SendEmailByTemplateId * @param tenantId, serviceId string, from et.Json, to []et.Json, subject string, templateId string, params et.Json, tp TpMessage, createdBy string * @response et.Items, error *
func SendOTPByTemplateId ¶ added in v1.0.11
func SendOTPByTemplateId(tenantId, serviceId string, from et.Json, name, email string, length int, duration time.Duration, templateId string, createdBy string) (et.Items, error)
* * SendOTPByTemplateId * @param tenantId, serviceId string, from et.Json, name, email string, length int, duration time.Duration, templateId string, createdBy string * @response et.Items, error *
func SendOTPEmail ¶ added in v1.0.11
func SendOTPEmail(tenantId, serviceId string, from et.Json, name, email string, length int, duration time.Duration, createdBy string) (et.Items, error)
* * SendOTPEmail * @param tenantId, serviceId string, from et.Json, name, email string, length int, duration time.Duration, createdBy string * @response et.Items, error *
func SendOTPSMS ¶ added in v1.0.11
func SendOTPSMS(tenantId, serviceId, sender, countryCode, phoneNumber string, length int, duration time.Duration, createdBy string) (et.Items, error)
* * SendOTPSMS * @param tenantId, serviceId, countryCode, phoneNumber string, length int, duration time.Duration, createdBy string * @response et.Items, error *
func SendSms ¶
func SendSms(tenantId, serviceId string, contactNumbers []string, content string, params et.Json, tp TpMessage, createdBy string) (et.Items, error)
* * SendSms * @param tenantId string, contactNumbers []string, content string, params et.Json, tp TpMessage, createdBy string * @response et.Item, error *
func SendWhatsapp ¶
func SendWhatsapp(tenantId, serviceId, templateId string, contactNumbers []string, params []et.Json, tp TpMessage, createdBy string) (et.Items, error)
* * SendWhatsapp * @param tenantId, serviceId, templateId string, contactNumbers []string, params []et.Json, tp TpMessage, createdBy string * @response et.Items, error *