-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add callback entity * feat: upgrade
- Loading branch information
Showing
20 changed files
with
1,317 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
116 changes: 116 additions & 0 deletions
116
src/main/java/io/github/doocs/im/model/callback/AfterGroupAttrChangedCallback.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
package io.github.doocs.im.model.callback; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import io.github.doocs.im.model.group.GroupAttr; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
/** | ||
* 群自定义属性变更后回调 | ||
* | ||
* @author bingo | ||
* @since 2024/7/14 10:18 | ||
*/ | ||
public class AfterGroupAttrChangedCallback implements Serializable { | ||
|
||
private static final long serialVersionUID = -8602621515102445503L; | ||
|
||
/** | ||
* 回调命令 | ||
*/ | ||
@JsonProperty("CallbackCommand") | ||
private String callbackCommand; | ||
|
||
/** | ||
* 操作的群 ID | ||
*/ | ||
@JsonProperty("GroupId") | ||
private String groupId; | ||
|
||
/** | ||
* 群组类型 群组类型介绍,例如:Public | ||
*/ | ||
@JsonProperty("Type") | ||
private String type; | ||
|
||
/** | ||
* 发起群自定义属性变更请求的操作者 UserID | ||
*/ | ||
@JsonProperty("Operator_Account") | ||
private String operatorAccount; | ||
|
||
/** | ||
* "set" : 重置自定义属性; "modify": 修改自定义属性; "clear": 清空自定义属性; "delete" : 删除自定义属性 | ||
*/ | ||
@JsonProperty("OptionType") | ||
private String optionType; | ||
|
||
/** | ||
* 自定义属性列表,key 为自定义属性的键,value 为自定义属性的值 | ||
*/ | ||
@JsonProperty("GroupAttr") | ||
private List<GroupAttr> groupAttr; | ||
|
||
/** | ||
* 事件触发的毫秒级别时间戳 | ||
*/ | ||
@JsonProperty("EventTime") | ||
private Long eventTime; | ||
|
||
public String getCallbackCommand() { | ||
return callbackCommand; | ||
} | ||
|
||
public void setCallbackCommand(String callbackCommand) { | ||
this.callbackCommand = callbackCommand; | ||
} | ||
|
||
public String getGroupId() { | ||
return groupId; | ||
} | ||
|
||
public void setGroupId(String groupId) { | ||
this.groupId = groupId; | ||
} | ||
|
||
public String getType() { | ||
return type; | ||
} | ||
|
||
public void setType(String type) { | ||
this.type = type; | ||
} | ||
|
||
public String getOperatorAccount() { | ||
return operatorAccount; | ||
} | ||
|
||
public void setOperatorAccount(String operatorAccount) { | ||
this.operatorAccount = operatorAccount; | ||
} | ||
|
||
public String getOptionType() { | ||
return optionType; | ||
} | ||
|
||
public void setOptionType(String optionType) { | ||
this.optionType = optionType; | ||
} | ||
|
||
public List<GroupAttr> getGroupAttr() { | ||
return groupAttr; | ||
} | ||
|
||
public void setGroupAttr(List<GroupAttr> groupAttr) { | ||
this.groupAttr = groupAttr; | ||
} | ||
|
||
public Long getEventTime() { | ||
return eventTime; | ||
} | ||
|
||
public void setEventTime(Long eventTime) { | ||
this.eventTime = eventTime; | ||
} | ||
} |
127 changes: 127 additions & 0 deletions
127
src/main/java/io/github/doocs/im/model/callback/AfterGroupMemberFieldChangedCallback.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
package io.github.doocs.im.model.callback; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* 群成员资料变更后回调 | ||
* | ||
* @author bingo | ||
* @since 2024/7/14 10:18 | ||
*/ | ||
public class AfterGroupMemberFieldChangedCallback implements Serializable { | ||
private static final long serialVersionUID = -7463001570593065039L; | ||
|
||
/** | ||
* 回调命令 | ||
*/ | ||
@JsonProperty("CallbackCommand") | ||
private String callbackCommand; | ||
|
||
/** | ||
* 群组 ID | ||
*/ | ||
@JsonProperty("GroupId") | ||
private String groupId; | ||
|
||
/** | ||
* 群组类型 | ||
*/ | ||
@JsonProperty("Type") | ||
private String type; | ||
|
||
/** | ||
* 发起变更请求的操作者 UserID | ||
*/ | ||
@JsonProperty("Operator_Account") | ||
private String operatorAccount; | ||
|
||
/** | ||
* 变更成员 UserID | ||
*/ | ||
@JsonProperty("Modified_Account") | ||
private String modifiedAccount; | ||
|
||
/** | ||
* 变更后成员身份,Admin/Member 分别为设置/取消管理员 | ||
*/ | ||
@JsonProperty("Role") | ||
private String role; | ||
|
||
/** | ||
* 变更后群名片 | ||
*/ | ||
@JsonProperty("NameCard") | ||
private String nameCard; | ||
|
||
/** | ||
* 事件触发的毫秒级别时间戳 | ||
*/ | ||
@JsonProperty("EventTime") | ||
private Long eventTime; | ||
|
||
public String getCallbackCommand() { | ||
return callbackCommand; | ||
} | ||
|
||
public void setCallbackCommand(String callbackCommand) { | ||
this.callbackCommand = callbackCommand; | ||
} | ||
|
||
public String getGroupId() { | ||
return groupId; | ||
} | ||
|
||
public void setGroupId(String groupId) { | ||
this.groupId = groupId; | ||
} | ||
|
||
public String getType() { | ||
return type; | ||
} | ||
|
||
public void setType(String type) { | ||
this.type = type; | ||
} | ||
|
||
public String getOperatorAccount() { | ||
return operatorAccount; | ||
} | ||
|
||
public void setOperatorAccount(String operatorAccount) { | ||
this.operatorAccount = operatorAccount; | ||
} | ||
|
||
public String getModifiedAccount() { | ||
return modifiedAccount; | ||
} | ||
|
||
public void setModifiedAccount(String modifiedAccount) { | ||
this.modifiedAccount = modifiedAccount; | ||
} | ||
|
||
public String getRole() { | ||
return role; | ||
} | ||
|
||
public void setRole(String role) { | ||
this.role = role; | ||
} | ||
|
||
public String getNameCard() { | ||
return nameCard; | ||
} | ||
|
||
public void setNameCard(String nameCard) { | ||
this.nameCard = nameCard; | ||
} | ||
|
||
public Long getEventTime() { | ||
return eventTime; | ||
} | ||
|
||
public void setEventTime(Long eventTime) { | ||
this.eventTime = eventTime; | ||
} | ||
} |
Oops, something went wrong.