Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
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
Commit 2f961ac8
authored
Nov 10, 2020
by
18356073052
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
推送消息策略Context
1 parent
c205c34e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
linkwe-wecom/src/main/java/com/linkwechat/wecom/strategy/MessageContext.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/strategy/MessageContext.java
0 → 100644
View file @
2f961ac
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
);
}
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment