Skip to content

Commit

Permalink
feat: add callback entity
Browse files Browse the repository at this point in the history
  • Loading branch information
yanglbme committed Jan 10, 2024
1 parent 3392468 commit 575946a
Show file tree
Hide file tree
Showing 9 changed files with 664 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
package io.github.doocs.im.model.callback;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;
import java.util.List;

/**
* 订阅公众号之后回调
*
* @author bingo
* @since 2024/1/10 10:18
*/
public class AfterAddOfficialAccountSubscriberCallback implements Serializable {
private static final long serialVersionUID = -2551706422161131110L;

/**
* 回调命令
*/
@JsonProperty("CallbackCommand")
private String callbackCommand;

/**
* 订阅的公众号用户 ID。
*/
@JsonProperty("Official_Account")
private String officialAccount;

/**
* 发起请求的操作者 UserID。
*/
@JsonProperty("Operator_Account")
private String operatorAccount;

/**
* 添加的订阅者列表。
*/
@JsonProperty("SubscribeAccountList")
private List<SubscriberAccount> subscribeAccountList;

/**
* 事件触发的毫秒级别时间戳。
*/
@JsonProperty("EventTime")
private Long eventTime;

public String getCallbackCommand() {
return callbackCommand;
}

public void setCallbackCommand(String callbackCommand) {
this.callbackCommand = callbackCommand;
}

public String getOfficialAccount() {
return officialAccount;
}

public void setOfficialAccount(String officialAccount) {
this.officialAccount = officialAccount;
}

public String getOperatorAccount() {
return operatorAccount;
}

public void setOperatorAccount(String operatorAccount) {
this.operatorAccount = operatorAccount;
}

public List<SubscriberAccount> getSubscribeAccountList() {
return subscribeAccountList;
}

public void setSubscribeAccountList(List<SubscriberAccount> subscribeAccountList) {
this.subscribeAccountList = subscribeAccountList;
}

public Long getEventTime() {
return eventTime;
}

public void setEventTime(Long eventTime) {
this.eventTime = eventTime;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
package io.github.doocs.im.model.callback;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;
import java.util.List;

/**
* 删除订阅者之后回调
*
* @author bingo
* @since 2024/1/10 10:18
*/
public class AfterDeleteOfficialAccountSubscriberCallback implements Serializable {
private static final long serialVersionUID = -9151244339635022909L;

/**
* 回调命令
*/
@JsonProperty("CallbackCommand")
private String callbackCommand;

/**
* 取消订阅的公众号用户 ID。
*/
@JsonProperty("Official_Account")
private String officialAccount;

/**
* 发起请求的操作者 UserID。
*/
@JsonProperty("Operator_Account")
private String operatorAccount;

/**
* 取消订阅的用户列表。
*/
@JsonProperty("SubscribeAccountList")
private List<SubscriberAccount> subscribeAccountList;

/**
* 事件触发的毫秒级别时间戳。
*/
@JsonProperty("EventTime")
private Long eventTime;

public String getCallbackCommand() {
return callbackCommand;
}

public void setCallbackCommand(String callbackCommand) {
this.callbackCommand = callbackCommand;
}

public String getOfficialAccount() {
return officialAccount;
}

public void setOfficialAccount(String officialAccount) {
this.officialAccount = officialAccount;
}

public String getOperatorAccount() {
return operatorAccount;
}

public void setOperatorAccount(String operatorAccount) {
this.operatorAccount = operatorAccount;
}

public List<SubscriberAccount> getSubscribeAccountList() {
return subscribeAccountList;
}

public void setSubscribeAccountList(List<SubscriberAccount> subscribeAccountList) {
this.subscribeAccountList = subscribeAccountList;
}

public Long getEventTime() {
return eventTime;
}

public void setEventTime(Long eventTime) {
this.eventTime = eventTime;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
package io.github.doocs.im.model.callback;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;

/**
* 公众号可订阅的人数已满之后回调
*
* @author bingo
* @since 2024/1/10 10:18
*/
public class AfterOfficialAccountFullCallback implements Serializable {
private static final long serialVersionUID = -8315181166386493588L;

/**
* 回调命令
*/
@JsonProperty("CallbackCommand")
private String callbackCommand;

/**
* 订阅的公众号用户 ID。
*/
@JsonProperty("Official_Account")
private String officialAccount;

/**
* 事件触发的毫秒级别时间戳。
*/
@JsonProperty("EventTime")
private Long eventTime;

public String getCallbackCommand() {
return callbackCommand;
}

public void setCallbackCommand(String callbackCommand) {
this.callbackCommand = callbackCommand;
}

public String getOfficialAccount() {
return officialAccount;
}

public void setOfficialAccount(String officialAccount) {
this.officialAccount = officialAccount;
}

public Long getEventTime() {
return eventTime;
}

public void setEventTime(Long eventTime) {
this.eventTime = eventTime;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
package io.github.doocs.im.model.callback;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;
import java.util.List;

/**
* 撤回公众号消息之后回调
*
* @author bingo
* @since 2024/1/10 10:18
*/
public class AfterOfficialAccountMsgWithdrawCallback implements Serializable {
private static final long serialVersionUID = -7080030096097700901L;

/**
* 回调命令。
*/
@JsonProperty("CallbackCommand")
private String callbackCommand;

/**
* 公众号用户 ID。
*/
@JsonProperty("Official_Account")
private String officialAccount;

/**
* 撤回消息 MsgKey 列表。
*/
@JsonProperty("WithdrawMsgList")
private List<WithdrawMsgItem> withdrawMsgList;

/**
* 事件触发的毫秒级别时间戳。
*/
@JsonProperty("EventTime")
private Long eventTime;

public String getCallbackCommand() {
return callbackCommand;
}

public void setCallbackCommand(String callbackCommand) {
this.callbackCommand = callbackCommand;
}

public String getOfficialAccount() {
return officialAccount;
}

public void setOfficialAccount(String officialAccount) {
this.officialAccount = officialAccount;
}

public List<WithdrawMsgItem> getWithdrawMsgList() {
return withdrawMsgList;
}

public void setWithdrawMsgList(List<WithdrawMsgItem> withdrawMsgList) {
this.withdrawMsgList = withdrawMsgList;
}

public Long getEventTime() {
return eventTime;
}

public void setEventTime(Long eventTime) {
this.eventTime = eventTime;
}
}
Loading

0 comments on commit 575946a

Please sign in to comment.