package models import "time" // SystemSMS 短信配置表 yz_system_sms type SystemSMS struct { ID uint64 `orm:"column(id);pk;auto" json:"id"` ConfigCode string `orm:"column(config_code);size(64)" json:"config_code"` ConfigName string `orm:"column(config_name);size(128)" json:"config_name"` ChannelType int8 `orm:"column(channel_type);default(1)" json:"channel_type"` ApiURL string `orm:"column(api_url);size(512);default('')" json:"api_url"` ApiKey string `orm:"column(api_key);size(256);default('')" json:"api_key"` ApiSecret string `orm:"column(api_secret);size(256);default('')" json:"api_secret"` SignName string `orm:"column(sign_name);size(128);default('')" json:"sign_name"` TemplateID string `orm:"column(template_id);size(128);default('')" json:"template_id"` ExtraParams *string `orm:"column(extra_params);type(json);null" json:"extra_params"` TestPhone string `orm:"column(test_phone);size(64);default('')" json:"test_phone"` Weight int `orm:"column(weight);default(10)" json:"weight"` IsDefault int8 `orm:"column(is_default);default(0)" json:"is_default"` Status int8 `orm:"column(status);default(1)" json:"status"` Remark string `orm:"column(remark);size(512);default('')" json:"remark"` CreateTime time.Time `orm:"column(create_time);type(datetime);auto_now_add" json:"create_time"` UpdateTime time.Time `orm:"column(update_time);type(datetime);auto_now" json:"update_time"` } func (m *SystemSMS) TableName() string { return "yz_system_sms" }