Files
web/server/models/sms.go
2026-03-17 01:00:11 +08:00

12 lines
573 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package models
// SMSConfig 短信平台配置(仅超级用户 role_id=0, role=admin 可配置)
type SMSConfig struct {
Provider string `bson:"provider" json:"provider"` // 服务商aliyun/tencent/...
AccessKey string `bson:"access_key" json:"access_key"` // AccessKey
SecretKey string `bson:"secret_key" json:"secret_key"` // SecretKey
SignName string `bson:"sign_name" json:"sign_name"` // 签名
TemplateID string `bson:"template_id" json:"template_id"` // 模板ID
Enabled bool `bson:"enabled" json:"enabled"` // 是否已启用
}