You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
587 B
21 lines
587 B
package com.fr.plugin.decision; |
|
|
|
import com.fr.decision.fun.impl.AbstractMessageEventProvider; |
|
import com.fr.plugin.transform.FunctionRecorder; |
|
|
|
import java.util.Map; |
|
|
|
/** |
|
* @author Zed |
|
* @version 10.0 |
|
* Created by Zed on 2019/11/13 |
|
*/ |
|
@FunctionRecorder |
|
public class CustomMessageSender extends AbstractMessageEventProvider { |
|
|
|
@Override |
|
public void handleMessage(Map<String, Object> messageMap) { |
|
System.out.println("平台新增了一个消息: " + messageMap.get("message")); |
|
System.out.println("该消息推送给: " + messageMap.get("username")); |
|
} |
|
}
|
|
|