分离钉钉消息到通知管理

This commit is contained in:
ayflying
2025-03-04 17:24:10 +08:00
parent 6988e99717
commit 6eeb5a57cd
5 changed files with 79 additions and 3 deletions

View File

@@ -0,0 +1,16 @@
package message
import "github.com/ayflying/utility_go/package/message/drive"
type MessageV1 interface {
Send(value string)
}
func New(typ MessageType, host string) MessageV1 {
switch typ {
case DingTalk:
return drive.Load(host)
}
return nil
}