修改配置
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
)
|
||||
|
||||
type Smsx interface {
|
||||
InitSmsx(ctx context.Context, params entity.SmsConfigData,logger loggerx.LoggerInterface) (Smsx, error)
|
||||
InitSmsx(ctx context.Context, params consts.SmsConfigData,logger loggerx.LoggerInterface) (Smsx, error)
|
||||
// Send 发送短信
|
||||
// templateId: 短信模板ID
|
||||
// phone: 手机号(格式:+86xxx)
|
||||
@@ -31,17 +31,17 @@ type SmsSendParam struct {
|
||||
type TemplateInfo struct {
|
||||
TempId string `json:"temp_id"` // 模板ID
|
||||
TempName string `json:"temp_name"` // 模板名称
|
||||
TempType entity.SmsTemplateType `json:"temp_type"` // 模板类型
|
||||
TempRange entity.SmsTemplateRange `json:"temp_range"` // 作用范围
|
||||
TempType consts.SmsTemplateType `json:"temp_type"` // 模板类型
|
||||
TempRange consts.SmsTemplateRange `json:"temp_range"` // 作用范围
|
||||
Content string `json:"content"` // 内容
|
||||
Status entity.SmsTemplateStatus `json:"status"` // 状态 (1.通过审核 2.审核中 3.未通过审核 4.取消审核)
|
||||
Params []entity.SmsTemplateParam `json:"params"` // 模板参数
|
||||
Status consts.SmsTemplateStatus `json:"status"` // 状态 (1.通过审核 2.审核中 3.未通过审核 4.取消审核)
|
||||
Params []consts.SmsTemplateParam `json:"params"` // 模板参数
|
||||
}
|
||||
|
||||
// 默认的实现
|
||||
type DefaultSmsx struct{}
|
||||
|
||||
func (l *DefaultSmsx) InitSmsx(ctx context.Context, params entity.SmsConfigData,logger loggerx.LoggerInterface) (Smsx, error) {
|
||||
func (l *DefaultSmsx) InitSmsx(ctx context.Context, params consts.SmsConfigData,logger loggerx.LoggerInterface) (Smsx, error) {
|
||||
return &DefaultSmsx{}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user