service

package
v1.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetId

func GetId(client_id, kind, description string) string

* * GetId * @param client_id, kind, description string * @response string *

func GetStatus

func GetStatus(serviceId string) (et.Json, error)

* * GetStatus * @param serviceId string * @response et.Json, error *

func SendEmail

func SendEmail(projectId string, to []et.Json, subject string, htmlContent string, params []et.Json, tp TpMessage, createdBy string) et.Json

* * SendEmail * @param projectId string, to []et.Json, subject string, htmlContent string, params []et.Json, tp TpMessage, createdBy string * @response et.Json *

func SendEmailByTemplate

func SendEmailByTemplate(projectId string, to []et.Json, subject string, templateId int, params []et.Json, tp TpMessage, createdBy string) et.Json

* * SendEmailByTemplate * @param projectId string, to []et.Json, subject string, templateId int, params []et.Json, tp TpMessage, createdBy string * @response et.Json *

func SendPush

func SendPush(projectId string, to []et.Json, subject string, content string, params []et.Json, tp TpMessage, createdBy string) et.Json

* * SendPush * @param projectId string, to []et.Json, subject string, content string, params []et.Json, tp TpMessage, createdBy string * @response et.Json *

func SendSms

func SendSms(projectId string, contactNumbers []string, content string, params []et.Json, tp TpMessage, createdBy string) et.Json

* * SendSms * @param projectId string, contactNumbers []string, content string, params []et.Json, tp TpMessage, createdBy string * @response et.Json *

func SendWhatsapp

func SendWhatsapp(projectId, string, templateId int, contactNumbers []string, params []et.Json, tp TpMessage, createdBy string) et.Json

* * SendWhatsapp * @param projectId, string, templateId int, contactNumbers []string, params []et.Json, tp TpMessage, createdBy string * @response et.Json *

func SetStatus

func SetStatus(serviceId string, status et.Json)

* * SetStatus * @param serviceId string, status et.Json *

Types

type TpMessage

type TpMessage int
const (
	TypeNotification TpMessage = iota
	TypeComercial
	TypeAutentication
)

func IntToTpMessage

func IntToTpMessage(i int) TpMessage

func (TpMessage) String

func (tp TpMessage) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL