task.go 829 B

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