Documentation
¶
Index ¶
- Constants
- func WrapperCode(templateCode, mobile string) string
- func WrapperMobileCount(templateCode, mobile string) string
- func WrapperTemplate(templateCode string) string
- func WrapperTemplateCfg(templateCode string) string
- func WrapperTemplateCount(templateCode string) string
- func WrapperTimeInterval(templateCode, mobile string) string
- type ProviderType
- type TemplateMsgRequest
- type UplinkMsgRequest
Constants ¶
View Source
const ( MessageCountForTemplatePerDay = "MESSAGE_COUNT_FOR_TEMPLATE_PER_DAY" MessageCountForMobilePerDay = "MESSAGE_COUNT_FOR_MOBILE_PER_DAY" TimeIntervalForMobilePerDay = "TIME_INTERVAL_FOR_MOBILE_PER_DAY" )
View Source
const ( VerificationMessage = "VERIFICATION_MESSAGE" CommonMessage = "COMMON_MESSAGE" )
View Source
const ( TimeInterval = "TIME_INTERVAL" TemplateCfg = "TEMPLATE_CONFIGURATION" TemplateCount = "TEMPLATE_COUNT" TemplateTypeVerificationCode = "TEMPLATE_TYPE_VERIFICATION_CODE" )
View Source
const ( MobileCount = "MOBILE_COUNT" DELIMITER = ":" TemplateM = "TEMPLATE_M" )
View Source
const (
ErrorStatus = "ERROR"
)
View Source
const (
LimitLeftTime = time.Hour * 24
)
Variables ¶
This section is empty.
Functions ¶
func WrapperCode ¶
WrapperCode is used to build the key name in Redis.
func WrapperMobileCount ¶
WrapperMobileCount is used to build the key name in Redis.
func WrapperTemplate ¶
WrapperTemplate is used to build the key name in Redis.
func WrapperTemplateCfg ¶
func WrapperTemplateCount ¶
WrapperTemplateCount is used to build the key name in Redis.
func WrapperTimeInterval ¶
WrapperTimeInterval is used to build the key name in Redis.
Types ¶
type ProviderType ¶
type ProviderType string
ProviderType defines an enumerated type for different cloud service providers.
const ( ProviderTypeAliyun ProviderType = "aliyun" ProviderTypeDummy ProviderType = "dummy" )
defines a group of constants for cloud service providers.
type TemplateMsgRequest ¶
type TemplateMsgRequest struct { PhoneNumber string `json:"phoneNumber"` SendTime string `json:"sendTime"` Content string `json:"content"` SignName string `json:"signName"` DestCode string `json:"destCode"` SequenceId int64 `json:"sequenceId"` RequestId string `json:"requestId"` TemplateCode int64 `json:"templateCode"` Providers []string `json:"providers"` }
TemplateMsgRequest defines a template message request for kafka queue.
type UplinkMsgRequest ¶
type UplinkMsgRequest struct { PhoneNumber string `json:"phoneNumber"` SendTime string `json:"sendTime"` Content string `json:"content"` SignName string `json:"signName"` DestCode string `json:"destCode"` SequenceId int64 `json:"sequenceId"` RequestId string `json:"requestId"` }
UplinkMsgRequest defines an uplink message request for kafka queue.
Click to show internal directories.
Click to hide internal directories.