Documentation
¶
Index ¶
Constants ¶
View Source
const TableNameConfigurationM = "sms_configuration"
View Source
const TableNameHistoryM = "sms_history"
View Source
const TableNameInteractionM = "sms_interaction"
View Source
const TableNameTemplateM = "sms_template"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigurationM ¶
type ConfigurationM struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` ConfigKey string `gorm:"column:config_key;not null" json:"config_key"` ConfigValue string `gorm:"column:config_value;not null" json:"config_value"` TemplateCode string `gorm:"column:template_code;not null" json:"template_code"` Order int32 `gorm:"column:order" json:"order"` CreateAt time.Time `gorm:"column:create_at" json:"create_at"` UpdateAt time.Time `gorm:"column:update_at" json:"update_at"` }
ConfigurationM mapped from table <sms_configuration>
func (*ConfigurationM) TableName ¶
func (*ConfigurationM) TableName() string
TableName ConfigurationM's table name
type HistoryM ¶
type HistoryM struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` Mobile string `gorm:"column:mobile" json:"mobile"` SendTime time.Time `gorm:"column:send_time" json:"send_time"` Status string `gorm:"column:status" json:"status"` Content string `gorm:"column:content" json:"content"` Code string `gorm:"column:code" json:"code"` Message string `gorm:"column:message" json:"message"` MessageID string `gorm:"column:message_id" json:"message_id"` MessageTemplateID int64 `gorm:"column:message_template_id" json:"message_template_id"` Report string `gorm:"column:report" json:"report"` CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"` }
HistoryM mapped from table <sms_history>
type InteractionM ¶
type InteractionM struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` InteractionID string `gorm:"column:interaction_id;not null;index:INDEX_INTERACTION_ID,priority:1" json:"interaction_id"` Mobile string `gorm:"column:mobile;not null;index:INDEX_MOBILE_AND_CONTENT,priority:1" json:"mobile"` Content string `gorm:"column:content;not null;index:INDEX_MOBILE_AND_CONTENT,priority:2" json:"content"` Param string `gorm:"column:param" json:"param"` Provider string `gorm:"column:provider" json:"provider"` Account string `gorm:"column:account" json:"account"` ReceiveTime time.Time `gorm:"column:receive_time" json:"receive_time"` CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"` }
InteractionM mapped from table <sms_interaction>
func (*InteractionM) TableName ¶
func (*InteractionM) TableName() string
TableName InteractionM's table name
type TemplateM ¶
type TemplateM struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` TemplateName string `gorm:"column:template_name;not null" json:"template_name"` TemplateCode string `gorm:"column:template_code;not null" json:"template_code"` Type string `gorm:"column:type;not null" json:"type"` Content string `gorm:"column:content;not null" json:"content"` Sign string `gorm:"column:sign" json:"sign"` Provider string `gorm:"column:provider" json:"provider"` Region string `gorm:"column:region;comment:国家地区" json:"region"` // 国家地区 Providers string `gorm:"column:providers" json:"providers"` CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"` }
TemplateM mapped from table <sms_template>
Click to show internal directories.
Click to hide internal directories.