Documentation
¶
Index ¶
Constants ¶
View Source
const ( CollSMSHistory = "sms_history" CollSMStatus = "sms_status" CollSMSReply = "sms_reply" CollUnsubscriber = "sms_unsubscriber" )
View Source
const ( SMSStateChecked = 1 SMSStateUnchecked = 2 SMSStateFailed = 5 )
Variables ¶
This section is empty.
Functions ¶
func NewSmsContextID ¶
func NewSmsContextID() int64
Types ¶
type DeliveryStatus ¶
type SMSContext ¶
type SMSContext struct {
ID int64 `json:"id"`
Phone string `json:"phone"`
Template string `json:"template"`
Variables map[string]string `json:"variables"`
History *SMSHistory `json:"sms_history,omitempty"`
}
func NewSMSContext ¶
type SMSHistory ¶
type SMSHistory struct {
MID int64 `bson:"mid" json:"mid"`
MsgID int64 `bson:"msg_id" json:"msg_id"`
Timestamp time.Time `bson:"timestamp" json:"timestamp"`
Phone string `bson:"phone" json:"phone"`
Content string `bson:"content" json:"content"`
Template string `bson:"template" json:"template"`
Category string `bson:"category" json:"category"`
Channel int `bson:"channel" json:"channel"`
Vendor string `bson:"vendor" json:"vendor"`
State SMSState `bson:"state" json:"state"`
}
type Unsubscriber ¶
Click to show internal directories.
Click to hide internal directories.