Skip to content

Commit 575946a

Browse files
committed
feat: add callback entity
1 parent 3392468 commit 575946a

9 files changed

+664
-0
lines changed
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
package io.github.doocs.im.model.callback;
2+
3+
import com.fasterxml.jackson.annotation.JsonProperty;
4+
5+
import java.io.Serializable;
6+
import java.util.List;
7+
8+
/**
9+
* 订阅公众号之后回调
10+
*
11+
* @author bingo
12+
* @since 2024/1/10 10:18
13+
*/
14+
public class AfterAddOfficialAccountSubscriberCallback implements Serializable {
15+
private static final long serialVersionUID = -2551706422161131110L;
16+
17+
/**
18+
* 回调命令
19+
*/
20+
@JsonProperty("CallbackCommand")
21+
private String callbackCommand;
22+
23+
/**
24+
* 订阅的公众号用户 ID。
25+
*/
26+
@JsonProperty("Official_Account")
27+
private String officialAccount;
28+
29+
/**
30+
* 发起请求的操作者 UserID。
31+
*/
32+
@JsonProperty("Operator_Account")
33+
private String operatorAccount;
34+
35+
/**
36+
* 添加的订阅者列表。
37+
*/
38+
@JsonProperty("SubscribeAccountList")
39+
private List<SubscriberAccount> subscribeAccountList;
40+
41+
/**
42+
* 事件触发的毫秒级别时间戳。
43+
*/
44+
@JsonProperty("EventTime")
45+
private Long eventTime;
46+
47+
public String getCallbackCommand() {
48+
return callbackCommand;
49+
}
50+
51+
public void setCallbackCommand(String callbackCommand) {
52+
this.callbackCommand = callbackCommand;
53+
}
54+
55+
public String getOfficialAccount() {
56+
return officialAccount;
57+
}
58+
59+
public void setOfficialAccount(String officialAccount) {
60+
this.officialAccount = officialAccount;
61+
}
62+
63+
public String getOperatorAccount() {
64+
return operatorAccount;
65+
}
66+
67+
public void setOperatorAccount(String operatorAccount) {
68+
this.operatorAccount = operatorAccount;
69+
}
70+
71+
public List<SubscriberAccount> getSubscribeAccountList() {
72+
return subscribeAccountList;
73+
}
74+
75+
public void setSubscribeAccountList(List<SubscriberAccount> subscribeAccountList) {
76+
this.subscribeAccountList = subscribeAccountList;
77+
}
78+
79+
public Long getEventTime() {
80+
return eventTime;
81+
}
82+
83+
public void setEventTime(Long eventTime) {
84+
this.eventTime = eventTime;
85+
}
86+
}
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
package io.github.doocs.im.model.callback;
2+
3+
import com.fasterxml.jackson.annotation.JsonProperty;
4+
5+
import java.io.Serializable;
6+
import java.util.List;
7+
8+
/**
9+
* 删除订阅者之后回调
10+
*
11+
* @author bingo
12+
* @since 2024/1/10 10:18
13+
*/
14+
public class AfterDeleteOfficialAccountSubscriberCallback implements Serializable {
15+
private static final long serialVersionUID = -9151244339635022909L;
16+
17+
/**
18+
* 回调命令
19+
*/
20+
@JsonProperty("CallbackCommand")
21+
private String callbackCommand;
22+
23+
/**
24+
* 取消订阅的公众号用户 ID。
25+
*/
26+
@JsonProperty("Official_Account")
27+
private String officialAccount;
28+
29+
/**
30+
* 发起请求的操作者 UserID。
31+
*/
32+
@JsonProperty("Operator_Account")
33+
private String operatorAccount;
34+
35+
/**
36+
* 取消订阅的用户列表。
37+
*/
38+
@JsonProperty("SubscribeAccountList")
39+
private List<SubscriberAccount> subscribeAccountList;
40+
41+
/**
42+
* 事件触发的毫秒级别时间戳。
43+
*/
44+
@JsonProperty("EventTime")
45+
private Long eventTime;
46+
47+
public String getCallbackCommand() {
48+
return callbackCommand;
49+
}
50+
51+
public void setCallbackCommand(String callbackCommand) {
52+
this.callbackCommand = callbackCommand;
53+
}
54+
55+
public String getOfficialAccount() {
56+
return officialAccount;
57+
}
58+
59+
public void setOfficialAccount(String officialAccount) {
60+
this.officialAccount = officialAccount;
61+
}
62+
63+
public String getOperatorAccount() {
64+
return operatorAccount;
65+
}
66+
67+
public void setOperatorAccount(String operatorAccount) {
68+
this.operatorAccount = operatorAccount;
69+
}
70+
71+
public List<SubscriberAccount> getSubscribeAccountList() {
72+
return subscribeAccountList;
73+
}
74+
75+
public void setSubscribeAccountList(List<SubscriberAccount> subscribeAccountList) {
76+
this.subscribeAccountList = subscribeAccountList;
77+
}
78+
79+
public Long getEventTime() {
80+
return eventTime;
81+
}
82+
83+
public void setEventTime(Long eventTime) {
84+
this.eventTime = eventTime;
85+
}
86+
}
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
package io.github.doocs.im.model.callback;
2+
3+
import com.fasterxml.jackson.annotation.JsonProperty;
4+
5+
import java.io.Serializable;
6+
7+
/**
8+
* 公众号可订阅的人数已满之后回调
9+
*
10+
* @author bingo
11+
* @since 2024/1/10 10:18
12+
*/
13+
public class AfterOfficialAccountFullCallback implements Serializable {
14+
private static final long serialVersionUID = -8315181166386493588L;
15+
16+
/**
17+
* 回调命令
18+
*/
19+
@JsonProperty("CallbackCommand")
20+
private String callbackCommand;
21+
22+
/**
23+
* 订阅的公众号用户 ID。
24+
*/
25+
@JsonProperty("Official_Account")
26+
private String officialAccount;
27+
28+
/**
29+
* 事件触发的毫秒级别时间戳。
30+
*/
31+
@JsonProperty("EventTime")
32+
private Long eventTime;
33+
34+
public String getCallbackCommand() {
35+
return callbackCommand;
36+
}
37+
38+
public void setCallbackCommand(String callbackCommand) {
39+
this.callbackCommand = callbackCommand;
40+
}
41+
42+
public String getOfficialAccount() {
43+
return officialAccount;
44+
}
45+
46+
public void setOfficialAccount(String officialAccount) {
47+
this.officialAccount = officialAccount;
48+
}
49+
50+
public Long getEventTime() {
51+
return eventTime;
52+
}
53+
54+
public void setEventTime(Long eventTime) {
55+
this.eventTime = eventTime;
56+
}
57+
}
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
package io.github.doocs.im.model.callback;
2+
3+
import com.fasterxml.jackson.annotation.JsonProperty;
4+
5+
import java.io.Serializable;
6+
import java.util.List;
7+
8+
/**
9+
* 撤回公众号消息之后回调
10+
*
11+
* @author bingo
12+
* @since 2024/1/10 10:18
13+
*/
14+
public class AfterOfficialAccountMsgWithdrawCallback implements Serializable {
15+
private static final long serialVersionUID = -7080030096097700901L;
16+
17+
/**
18+
* 回调命令。
19+
*/
20+
@JsonProperty("CallbackCommand")
21+
private String callbackCommand;
22+
23+
/**
24+
* 公众号用户 ID。
25+
*/
26+
@JsonProperty("Official_Account")
27+
private String officialAccount;
28+
29+
/**
30+
* 撤回消息 MsgKey 列表。
31+
*/
32+
@JsonProperty("WithdrawMsgList")
33+
private List<WithdrawMsgItem> withdrawMsgList;
34+
35+
/**
36+
* 事件触发的毫秒级别时间戳。
37+
*/
38+
@JsonProperty("EventTime")
39+
private Long eventTime;
40+
41+
public String getCallbackCommand() {
42+
return callbackCommand;
43+
}
44+
45+
public void setCallbackCommand(String callbackCommand) {
46+
this.callbackCommand = callbackCommand;
47+
}
48+
49+
public String getOfficialAccount() {
50+
return officialAccount;
51+
}
52+
53+
public void setOfficialAccount(String officialAccount) {
54+
this.officialAccount = officialAccount;
55+
}
56+
57+
public List<WithdrawMsgItem> getWithdrawMsgList() {
58+
return withdrawMsgList;
59+
}
60+
61+
public void setWithdrawMsgList(List<WithdrawMsgItem> withdrawMsgList) {
62+
this.withdrawMsgList = withdrawMsgList;
63+
}
64+
65+
public Long getEventTime() {
66+
return eventTime;
67+
}
68+
69+
public void setEventTime(Long eventTime) {
70+
this.eventTime = eventTime;
71+
}
72+
}

0 commit comments

Comments
 (0)