123456789101112131415161718192021 |
- package services
- import (
- "fmt"
- )
- func Task() {
- fmt.Println("start")
- //sendEmailFileForAskMsgResearch := task.NewTask("sendEmailFileForAskMsgResearch", "0 */5 6-23 * * *", SendEmailFileForAskMsgResearch) //研选系列专家电话会,会前1小时将问题列表发送给邮箱
- //task.AddTask("sendEmailFileForAskMsgResearch", sendEmailFileForAskMsgResearch)
- //
- //sendActivityBeginMsgMeeting := task.NewTask("sendActivityBeginMsgMeeting", "0 */5 6-23 * * *", SendActivityBeginMsgMeeting) //会议前15分钟的提醒
- //task.AddTask("sendActivityBeginMsgMeeting", sendActivityBeginMsgMeeting)
- //
- //sendActivityBeginMsg := task.NewTask("sendActivityBeginMsg", "0 */5 6-23 * * *", SendActivityBeginMsg) //会议前60分钟的提醒
- //task.AddTask("sendActivityBeginMsg", sendActivityBeginMsg)
- fmt.Println("end")
- }
|