mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-30 00:41:25 +08:00
【新增】资源管理模块
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
package sms
|
||||
|
||||
type Sms interface {
|
||||
GetBusiness(key string) Sms
|
||||
Send(phone []string, templateParam interface{}) error
|
||||
Send(PhoneNumbers, SignName, TemplateCode, TemplateParam string) error
|
||||
}
|
||||
|
||||
func NewDefaultSms(use string) Sms {
|
||||
switch use {
|
||||
case "AliYun":
|
||||
return NewAliYun()
|
||||
return NewAliSms(AliConfig{})
|
||||
default:
|
||||
panic("sms driver err")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user