修复缓存可能遇到的问题

This commit is contained in:
ayflying
2025-03-10 19:00:29 +08:00
parent 92a127e128
commit f8ec441241
9 changed files with 84 additions and 54 deletions

View File

@@ -9,11 +9,12 @@ type MessageV1 interface {
Send(value string)
}
func New(typ v1.NoticeType, host string) MessageV1 {
func New(typ v1.NoticeType, host string, value ...interface{}) MessageV1 {
switch typ {
case v1.NoticeType_DINGTALK:
return drive.Load(host)
return drive.DingTalkLoad(host)
case v1.NoticeType_EMAIL:
return drive.MailLoad(host, value[0].(int), value[1].(string), value[2].(string))
}
return nil
}