Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

江名洋 / linkwe-scrm

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • linkwe-scrm
  • ..
  • strategy
  • MessageContext.java
  • 18356073052's avatar
    推送消息策略Context · 9d2f1fb9
    18356073052 committed Nov 10, 2020
    9d2f1fb9
MessageContext.java 442 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
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);
    }

}