Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SendMailRequest ¶
type SendMailRequest struct { To string `json:"to,omitempty" validate:"required"` Cc string `json:"cc,omitempty"` Subject string `json:"subject,omitempty" validate:"required"` Content string `json:"content,omitempty" validate:"required"` // contains filtered or unexported fields }
SendMailRequest todo
func (*SendMailRequest) PrepareBody ¶
func (req *SendMailRequest) PrepareBody(from string) ([]byte, error)
PrepareBody todo
type SendSMSRequest ¶
type SendSMSRequest struct { TemplateID string `json:"template_id"` ParamSet []string `json:"param_set"` PhoneNumberSet []string `json:"phone_number_set" validate:"required"` }
SendSMSRequest todo
func (*SendSMSRequest) AddParams ¶
func (req *SendSMSRequest) AddParams(params ...string)
AddParams todo
func (*SendSMSRequest) AddPhone ¶
func (req *SendSMSRequest) AddPhone(params ...string)
AddPhone todo
func (*SendSMSRequest) InjectDefaultIsoCode ¶
func (req *SendSMSRequest) InjectDefaultIsoCode()
InjectDefaultIsoCode todo
Click to show internal directories.
Click to hide internal directories.