Commit 0011eaa0 by 18356073052

用策略模式重构消息发送模块

1 parent c78b9eae
...@@ -19,6 +19,7 @@ import com.linkwechat.wecom.domain.dto.WeMessagePushResultDto; ...@@ -19,6 +19,7 @@ import com.linkwechat.wecom.domain.dto.WeMessagePushResultDto;
import com.linkwechat.wecom.mapper.WeMessagePushMapper; import com.linkwechat.wecom.mapper.WeMessagePushMapper;
import com.linkwechat.wecom.service.IWeGroupService; import com.linkwechat.wecom.service.IWeGroupService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Arrays; import java.util.Arrays;
import java.util.HashMap; import java.util.HashMap;
...@@ -28,6 +29,7 @@ import java.util.Optional; ...@@ -28,6 +29,7 @@ import java.util.Optional;
/** /**
* 应用推送消息 * 应用推送消息
*/ */
@Service
public class SendMessageToUserGroupStrategy implements Strategy { public class SendMessageToUserGroupStrategy implements Strategy {
@Autowired @Autowired
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!