MessageCenterEvent.java
1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package com.yoho.error.event;
import com.alibaba.fastjson.JSONObject;
/**
* 消息中心事件
*
* @author hugufei
*/
public class MessageCenterEvent extends CommonEvent {
private static final long serialVersionUID = -7033940407683264120L;
private String sendScene;// 场景
private String sendSceneKey;// 场景key
private JSONObject params;// 关键参数,需要和消息中心约定参数格式【如订单已发货场景中的订单号】
private String uid;// uid
public MessageCenterEvent(String sendScene, String sendSceneKey, JSONObject params, String uid) {
super(sendScene);
this.sendScene = sendScene;
this.sendSceneKey = sendSceneKey;
this.params = params;
this.uid = uid;
}
public String getSendScene() {
return sendScene;
}
public void setSendScene(String sendScene) {
this.sendScene = sendScene;
}
public String getSendSceneKey() {
return sendSceneKey;
}
public void setSendSceneKey(String sendSceneKey) {
this.sendSceneKey = sendSceneKey;
}
public String getUid() {
return uid;
}
public void setUid(String uid) {
this.uid = uid;
}
public JSONObject getParams() {
return params;
}
public void setParams(JSONObject params) {
this.params = params;
}
}