Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MailProvider ¶
type MailProvider interface {
Send(req MailRequest) error
}
type MailRequest ¶
type Message ¶
type Message struct { MessageId int `json:"id"` MessageCategory int `json:"messageCategory,omitempty"` // 消息类型 }
Message 消息
type Request ¶
type Request struct { Template model.MessageTemplate Params map[string]any Receivers string }
Request SMS发送请求
type Response ¶
type Response struct { RequestId string // 本次请求的唯一标识,由服务器分配。用来追溯历史 Payload interface{} // 个性化的服务器返回信息 }
Response 服务器回复
type SmsProvider ¶
SmsProvider 发短信工具
Click to show internal directories.
Click to hide internal directories.