fix: piont error
This commit is contained in:
@@ -20,7 +20,7 @@ func NewAliyunSMSChannel() *AliyunSMSChannel {
|
||||
}
|
||||
|
||||
func (c *AliyunSMSChannel) SendUnified(msgObj interface{}, ins models.SendTasksIns, content *UnifiedMessageContent) (string, string) {
|
||||
auth, ok := msgObj.(send_way_service.WayDetailAliyunSMS)
|
||||
auth, ok := msgObj.(*send_way_service.WayDetailAliyunSMS)
|
||||
if !ok {
|
||||
return "", "类型转换失败"
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ func (c *CustomChannel) FormatContent(content *UnifiedMessageContent) (string, s
|
||||
}
|
||||
|
||||
func (c *CustomChannel) SendUnified(msgObj interface{}, ins models.SendTasksIns, content *UnifiedMessageContent) (string, string) {
|
||||
auth, ok := msgObj.(send_way_service.WayDetailCustom)
|
||||
auth, ok := msgObj.(*send_way_service.WayDetailCustom)
|
||||
if !ok {
|
||||
return "", "类型转换失败"
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ func NewDtalkChannel() *DtalkChannel {
|
||||
}
|
||||
|
||||
func (c *DtalkChannel) SendUnified(msgObj interface{}, ins models.SendTasksIns, content *UnifiedMessageContent) (string, string) {
|
||||
auth, ok := msgObj.(send_way_service.WayDetailDTalk)
|
||||
auth, ok := msgObj.(*send_way_service.WayDetailDTalk)
|
||||
if !ok {
|
||||
return "", "类型转换失败"
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ func NewEmailChannel() *EmailChannel {
|
||||
}
|
||||
|
||||
func (c *EmailChannel) SendUnified(msgObj interface{}, ins models.SendTasksIns, content *UnifiedMessageContent) (string, string) {
|
||||
auth, ok := msgObj.(send_way_service.WayDetailEmail)
|
||||
auth, ok := msgObj.(*send_way_service.WayDetailEmail)
|
||||
if !ok {
|
||||
return "", "类型转换失败"
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ func NewFeishuChannel() *FeishuChannel {
|
||||
}
|
||||
|
||||
func (c *FeishuChannel) SendUnified(msgObj interface{}, ins models.SendTasksIns, content *UnifiedMessageContent) (string, string) {
|
||||
auth, ok := msgObj.(send_way_service.WayDetailFeishu)
|
||||
auth, ok := msgObj.(*send_way_service.WayDetailFeishu)
|
||||
if !ok {
|
||||
return "", "类型转换失败"
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ func NewMessageNestChannel() *MessageNestChannel {
|
||||
}
|
||||
|
||||
func (c *MessageNestChannel) SendUnified(msgObj interface{}, ins models.SendTasksIns, content *UnifiedMessageContent) (string, string) {
|
||||
_, ok := msgObj.(send_way_service.MessageNest)
|
||||
_, ok := msgObj.(*send_way_service.MessageNest)
|
||||
if !ok {
|
||||
return "", "类型转换失败"
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ func NewQyWeiXinChannel() *QyWeiXinChannel {
|
||||
}
|
||||
|
||||
func (c *QyWeiXinChannel) SendUnified(msgObj interface{}, ins models.SendTasksIns, content *UnifiedMessageContent) (string, string) {
|
||||
auth, ok := msgObj.(send_way_service.WayDetailQyWeiXin)
|
||||
auth, ok := msgObj.(*send_way_service.WayDetailQyWeiXin)
|
||||
if !ok {
|
||||
return "", "类型转换失败"
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ func NewWeChatOFAccountChannel() *WeChatOFAccountChannel {
|
||||
}
|
||||
|
||||
func (c *WeChatOFAccountChannel) SendUnified(msgObj interface{}, ins models.SendTasksIns, content *UnifiedMessageContent) (string, string) {
|
||||
auth, ok := msgObj.(send_way_service.WeChatOFAccount)
|
||||
auth, ok := msgObj.(*send_way_service.WeChatOFAccount)
|
||||
if !ok {
|
||||
return "", "类型转换失败"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user