Commit 2f961ac8 by 18356073052

推送消息策略Context

1 parent c205c34e
package com.linkwechat.wecom.strategy;
import com.linkwechat.wecom.domain.WeMessagePush;
public class MessageContext {
private Strategy strategy;
public MessageContext(Strategy strategy) {
this.strategy = strategy;
}
/**
* 推送消息
*
* @param weMessagePush 消息发送的
*/
public void sendMessage(WeMessagePush weMessagePush) {
strategy.sendMessage(weMessagePush);
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!