wechat_strategies.go 578 B

12345678910111213
  1. package MessageHandlers
  2. import "wechat-api/internal/svc"
  3. func GetWechatStrategies() map[string]func(*svc.ServiceContext) MessageHandlerStrategy {
  4. return map[string]func(*svc.ServiceContext) MessageHandlerStrategy{
  5. "FriendPushNotice": toStrategy(NewFriendPushNoticeTypeHandler),
  6. //"ChatroomPushNotice": toStrategy(NewChatroomPushNoticeTypeHandler),
  7. "ContactLabelInfoNotice": toStrategy(NewContactLabelInfoNotice),
  8. "FindContactTaskResult": toStrategy(NewFindContactTaskResultNoticeHandler),
  9. "TaskResultNotice": toStrategy(NewTaskResultNoticeHandler),
  10. }
  11. }