Documentation
¶
Index ¶
Constants ¶
View Source
const ( //define category constant for reference //CategoryBar Category = "bar" BlankCategory = Category("blank") )
View Source
const ( //define template name constant for reference //NameFoo Name = "foo" BlankName = Name("blank") )
Variables ¶
View Source
var ActionCenter = make(map[string]middleware.Action)
Functions ¶
func RegisterAction ¶
func RegisterAction(actionName string, action middleware.Action)
Types ¶
type Category ¶
type Category string
短信类别名称, 它决定了短信ID前缀以及短信投递渠道(营销渠道/产品渠道), 需要和CRM中定义的相同, 建议在CRM中添加新类别后对应添加新的常量定义
type SMSCategory ¶
type SMSTemplate ¶
type SMSTemplate struct {
Name Name `bson:"name" json:"name"`
Category Category `bson:"category" json:"category"`
Content string `bson:"content" json:"content"`
Timestamp int64 `bson:"timestamp" json:"timestamp"`
Enabled bool `bson:"enabled" json:"enabled"`
Description string `bson:"description" json:"description"`
Callback c.Name `bson:"callback" json:"callback"`
ActionStructList []middleware.ActionStruct `bson:"actions" json:"actions"`
ActionList []middleware.Action `bson:"-" json:"-"`
}
Click to show internal directories.
Click to hide internal directories.