package consts type SmsConfig struct { SmsType Platform3rdType `json:"sms_type" gorm:"column:sms_type;not null;comment:短信类型(ali.阿里云 tencent.腾讯云 smsbao.短信宝)"` Name string `json:"name" gorm:"column:name;not null;comment:平台名称"` ConfigData SmsConfigData `json:"config_data" gorm:"column:config_data;serializer:json;not null;comment:配置数据JSON"` Status int8 `json:"status" gorm:"column:status;default:1;comment:通道状态(1.开启 -1关闭)"` } type SmsConfigData struct { SysType Platform3rdType `json:"sys_type"` // 短信平台类型 Aliyun *SmsConfigDataAliyun `json:"aliyun,omitempty"` // 阿里云短信平台参数 Tencent *SmsConfigDataTencent `json:"tencent,omitempty"` // 腾讯云短信平台参数 } type SmsConfigDataAliyun struct { AccessKeyId string `json:"access_key_id"` // 阿里云短信平台access_key_id AccessKeySecret string `json:"access_key_secret"` // 阿里云短信平台access_key_secret SignName string `json:"sign_name"` // 阿里云短信平台签名 Endpoint string `json:"endpoint"` // 选填 阿里云短信平台地址 } type SmsConfigDataTencent struct { SecretId string `json:"secret_id"` // 腾讯云短信平台secret_id SecretKey string `json:"secret_key"` // 腾讯讯云短信平台secret_key SignName string `json:"sign_name"` // 腾讯云短信平台签名 SmsSdkAppId string `json:"sms_sdk_app_id"` // 腾讯云短信平台sdk_app_id Endpoint string `json:"endpoint"` // 选填 腾讯云短信平台地址 Region string `json:"region"` // 选填 腾讯云短信平台region }