Skip to content

Commit

Permalink
build: release v0.4.03 (#183)
Browse files Browse the repository at this point in the history
* feat: add callback entity
* feat: upgrade
  • Loading branch information
yanglbme authored Jul 4, 2024
1 parent 332164f commit b5d1302
Show file tree
Hide file tree
Showing 20 changed files with 1,317 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ If you're using Maven, just add the following dependency in `pom.xml`.
<dependency>
<groupId>io.github.doocs</groupId>
<artifactId>im-server-sdk-java</artifactId>
<version>0.4.02</version>
<version>0.4.03</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<dependency>
<groupId>io.github.doocs</groupId>
<artifactId>im-server-sdk-java</artifactId>
<version>0.4.02</version>
<version>0.4.03</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion docs/guide/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 介绍

本文档基于腾讯云 IM Server SDK Java <Badge type="tip" text="v0.4.02" vertical="top" /> 编写。
本文档基于腾讯云 IM Server SDK Java <Badge type="tip" text="v0.4.03" vertical="top" /> 编写。

## 前提条件

Expand Down
4 changes: 2 additions & 2 deletions docs/guide/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
<dependency>
<groupId>io.github.doocs</groupId>
<artifactId>im-server-sdk-java</artifactId>
<version>0.4.02</version>
<version>0.4.03</version>
</dependency>
```

### Gradle

```gradle
implementation group: 'io.github.doocs', name: 'im-server-sdk-java', version: '0.4.02'
implementation group: 'io.github.doocs', name: 'im-server-sdk-java', version: '0.4.03'
```

### 下载 JAR
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "qcloud-im-server-sdk-java",
"version": "0.4.02",
"version": "0.4.03",
"description": "腾讯云 IM 服务端 SDK API 文档 Java 版",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.github.doocs</groupId>
<artifactId>im-server-sdk-java</artifactId>
<version>0.4.02</version>
<version>0.4.03</version>
<packaging>jar</packaging>

<name>qcloud-im-server-sdk-java</name>
Expand Down
44 changes: 44 additions & 0 deletions src/main/java/io/github/doocs/im/constant/CallbackCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
* @since 2021/11/16 11:27
*/
public class CallbackCommand {

/**
* 接口超频告警回调
*/
public static final String REQUEST_OVER_LIMIT = "Alert.RequestOverLimit";

/**
* 状态变更回调(在线状态)
*/
Expand Down Expand Up @@ -169,11 +175,36 @@ public class CallbackCommand {
*/
public static final String GROUP_CALLBACK_AFTER_TOPIC_INFO_CHANGED = "Group.CallbackAfterTopicInfoChanged";

/**
* 群成员资料变更后回调
*/
public static final String GROUP_CALLBACK_AFTER_MEMBER_FIELD_CHANGED = "Group.CallbackAfterMemberFieldChanged";

/**
* 群自定义属性变更后回调
*/
public static final String GROUP_CALLBACK_AFTER_GROUP_ATTR_CHANGED = "Group.CallbackAfterGroupAttrChanged";

/**
* 已读回执后回调
*/
public static final String GROUP_CALLBACK_AFTER_READ_RECEIPT = "Group.CallbackAfterReadReceipt";

/**
* 转让群主后回调
*/
public static final String GROUP_CALLBACK_AFTER_CHANGE_GROUP_OWNER = "Group.CallbackAfterChangeGroupOwner";

/**
* 群内@机器人之后回调
*/
public static final String BOT_CALLBACK_ON_GROUP_MESSAGE = "Bot.OnGroupMessage";

/**
* 智能机器人单聊消息自定义回调
*/
public static final String CHAT_BOT_ON_C2C_SIGNAL_MESSAGE = "Chatbot.OnC2CSignalMessage";

// --------------------------------------------------------------------------------------------------------

/**
Expand Down Expand Up @@ -238,6 +269,19 @@ public class CallbackCommand {
*/
public static final String OFFICIAL_ACCOUNT_CALLBACK_AFTER_MSG_WITHDRAW = "OfficialAccount.CallbackAfterMsgWithDraw";

// --------------------------------------------------------------------------------------------------------

/**
* 普通推送结果回调
*/
public static final String PUSH_OFFLINE_PUSH = "Push.OfflinePush";

/**
* 全员推送结果回调
*/
public static final String PUSH_ALL_MEMBER_PUSH = "Push.AllMemberPush";


private CallbackCommand() {

}
Expand Down
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;
}
}
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;
}
}
Loading

0 comments on commit b5d1302

Please sign in to comment.