types

package
v0.0.0-...-c1a7e98 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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

func WrapperCode(templateCode, mobile string) string

WrapperCode is used to build the key name in Redis.

func WrapperMobileCount

func WrapperMobileCount(templateCode, mobile string) string

WrapperMobileCount is used to build the key name in Redis.

func WrapperTemplate

func WrapperTemplate(templateCode string) string

WrapperTemplate is used to build the key name in Redis.

func WrapperTemplateCfg

func WrapperTemplateCfg(templateCode string) string

func WrapperTemplateCount

func WrapperTemplateCount(templateCode string) string

WrapperTemplateCount is used to build the key name in Redis.

func WrapperTimeInterval

func WrapperTimeInterval(templateCode, mobile string) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳