diff --git a/README.md b/README.md
index be675c4..90aaadb 100644
--- a/README.md
+++ b/README.md
@@ -26,7 +26,7 @@ If you're using Maven, just add the following dependency in `pom.xml`.
io.github.doocs
im-server-sdk-java
- 0.4.06
+ 0.4.07
```
diff --git a/README_CN.md b/README_CN.md
index cf46c43..2c5c2c7 100644
--- a/README_CN.md
+++ b/README_CN.md
@@ -26,7 +26,7 @@
io.github.doocs
im-server-sdk-java
- 0.4.06
+ 0.4.07
```
diff --git a/docs/guide/README.md b/docs/guide/README.md
index 4a10cd1..6501fd5 100644
--- a/docs/guide/README.md
+++ b/docs/guide/README.md
@@ -1,6 +1,6 @@
# 介绍
-本文档基于腾讯云 IM Server SDK Java 编写。
+本文档基于腾讯云 IM Server SDK Java 编写。
## 前提条件
diff --git a/docs/guide/quickstart.md b/docs/guide/quickstart.md
index 2b92159..85dab9d 100644
--- a/docs/guide/quickstart.md
+++ b/docs/guide/quickstart.md
@@ -10,14 +10,14 @@
io.github.doocs
im-server-sdk-java
- 0.4.06
+ 0.4.07
```
### Gradle
```gradle
-implementation group: 'io.github.doocs', name: 'im-server-sdk-java', version: '0.4.06'
+implementation group: 'io.github.doocs', name: 'im-server-sdk-java', version: '0.4.07'
```
### 下载 JAR
diff --git a/package-lock.json b/package-lock.json
index 958c2c6..fe0e917 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "qcloud-im-server-sdk-java",
- "version": "0.4.06",
+ "version": "0.4.07",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "qcloud-im-server-sdk-java",
- "version": "0.4.06",
+ "version": "0.4.07",
"license": "Apache-2.0",
"devDependencies": {
"@vuepress/bundler-vite": "^2.0.0-rc.13",
diff --git a/package.json b/package.json
index f4fe588..b3fb2ec 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "qcloud-im-server-sdk-java",
- "version": "0.4.06",
+ "version": "0.4.07",
"description": "腾讯云 IM 服务端 SDK API 文档 Java 版",
"main": "index.js",
"scripts": {
diff --git a/pom.xml b/pom.xml
index 12deceb..918030c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
io.github.doocs
im-server-sdk-java
- 0.4.06
+ 0.4.07
jar
qcloud-im-server-sdk-java
diff --git a/src/main/java/io/github/doocs/im/model/group/GroupInfo.java b/src/main/java/io/github/doocs/im/model/group/GroupInfo.java
index ce92a63..bd4f5a9 100644
--- a/src/main/java/io/github/doocs/im/model/group/GroupInfo.java
+++ b/src/main/java/io/github/doocs/im/model/group/GroupInfo.java
@@ -114,6 +114,18 @@ public class GroupInfo implements Serializable {
@JsonProperty("InviteJoinOption")
private String inviteJoinOption;
+ /**
+ * 是否启用权限组作为权限判断依据
+ */
+ @JsonProperty("EnablePermission")
+ private Integer enablePermission;
+
+ /**
+ * 群成员拥有的默认权限
+ */
+ @JsonProperty("DefaultPermission")
+ private Integer defaultPermission;
+
/**
* 群全员禁言状态
*/
@@ -146,7 +158,8 @@ public GroupInfo(String groupId, String type, String name, String introduction,
Integer lastInfoTime, Integer lastMsgTime, Long nextMsgSeq, Integer memberNum,
Integer maxMemberNum, String applyJoinOption, String inviteJoinOption, String muteAllMember,
List appDefinedData, List memberList,
- List appMemberDefinedData) {
+ List appMemberDefinedData,
+ Integer enablePermission, Integer defaultPermission) {
this.groupId = groupId;
this.type = type;
this.name = name;
@@ -167,6 +180,8 @@ public GroupInfo(String groupId, String type, String name, String introduction,
this.appDefinedData = appDefinedData;
this.memberList = memberList;
this.appMemberDefinedData = appMemberDefinedData;
+ this.enablePermission = enablePermission;
+ this.defaultPermission = defaultPermission;
}
private GroupInfo(Builder builder) {
@@ -190,6 +205,8 @@ private GroupInfo(Builder builder) {
this.appDefinedData = builder.appDefinedData;
this.memberList = builder.memberList;
this.appMemberDefinedData = builder.appMemberDefinedData;
+ this.enablePermission = builder.enablePermission;
+ this.defaultPermission = builder.defaultPermission;
}
public static Builder builder() {
@@ -356,6 +373,21 @@ public void setAppMemberDefinedData(List appMemberDefi
this.appMemberDefinedData = appMemberDefinedData;
}
+ public Integer getEnablePermission() {
+ return enablePermission;
+ }
+
+ public void setEnablePermission(Integer enablePermission) {
+ this.enablePermission = enablePermission;
+ }
+
+ public Integer getDefaultPermission() {
+ return defaultPermission;
+ }
+
+ public void setDefaultPermission(Integer defaultPermission) {
+ this.defaultPermission = defaultPermission;
+ }
public static final class Builder {
private String groupId;
@@ -378,6 +410,8 @@ public static final class Builder {
private List appDefinedData;
private List memberList;
private List appMemberDefinedData;
+ private Integer enablePermission;
+ private Integer defaultPermission;
private Builder() {
}
@@ -485,5 +519,15 @@ public Builder appMemberDefinedData(List appMemberDefi
this.appMemberDefinedData = appMemberDefinedData;
return this;
}
+
+ public Builder enablePermission(Integer enablePermission) {
+ this.enablePermission = enablePermission;
+ return this;
+ }
+
+ public Builder defaultPermission(Integer defaultPermission) {
+ this.defaultPermission = defaultPermission;
+ return this;
+ }
}
}
diff --git a/src/main/java/io/github/doocs/im/model/request/ChangeGroupOwnerRequest.java b/src/main/java/io/github/doocs/im/model/request/ChangeGroupOwnerRequest.java
index e7e49af..c1522b8 100644
--- a/src/main/java/io/github/doocs/im/model/request/ChangeGroupOwnerRequest.java
+++ b/src/main/java/io/github/doocs/im/model/request/ChangeGroupOwnerRequest.java
@@ -26,6 +26,12 @@ public class ChangeGroupOwnerRequest extends GenericRequest implements Serializa
@JsonProperty("NewOwner_Account")
private String newOwnerAccount;
+ /**
+ * 指定的操作者账号
+ */
+ @JsonProperty("From_Account")
+ private String fromAccount;
+
public ChangeGroupOwnerRequest() {
}
@@ -34,9 +40,16 @@ public ChangeGroupOwnerRequest(String groupId, String newOwnerAccount) {
this.newOwnerAccount = newOwnerAccount;
}
+ public ChangeGroupOwnerRequest(String groupId, String newOwnerAccount, String fromAccount) {
+ this.groupId = groupId;
+ this.newOwnerAccount = newOwnerAccount;
+ this.fromAccount = fromAccount;
+ }
+
private ChangeGroupOwnerRequest(Builder builder) {
this.groupId = builder.groupId;
this.newOwnerAccount = builder.newOwnerAccount;
+ this.fromAccount = builder.fromAccount;
}
public static Builder builder() {
@@ -59,10 +72,18 @@ public void setNewOwnerAccount(String newOwnerAccount) {
this.newOwnerAccount = newOwnerAccount;
}
+ public String getFromAccount() {
+ return fromAccount;
+ }
+
+ public void setFromAccount(String fromAccount) {
+ this.fromAccount = fromAccount;
+ }
public static final class Builder {
private String groupId;
private String newOwnerAccount;
+ private String fromAccount;
private Builder() {
}
@@ -80,5 +101,10 @@ public Builder newOwnerAccount(String newOwnerAccount) {
this.newOwnerAccount = newOwnerAccount;
return this;
}
+
+ public Builder fromAccount(String fromAccount) {
+ this.fromAccount = fromAccount;
+ return this;
+ }
}
}
diff --git a/src/main/java/io/github/doocs/im/model/request/CreateGroupRequest.java b/src/main/java/io/github/doocs/im/model/request/CreateGroupRequest.java
index 5ab6c76..0adba17 100644
--- a/src/main/java/io/github/doocs/im/model/request/CreateGroupRequest.java
+++ b/src/main/java/io/github/doocs/im/model/request/CreateGroupRequest.java
@@ -107,6 +107,22 @@ public class CreateGroupRequest implements Serializable {
@JsonProperty("SupportTopic")
private Integer supportTopic;
+ /**
+ * 仅支持话题的社群可以设置该字段
+ * 是否启用权限组作为权限判断依据
+ * 0:不启用
+ * 1:启用
+ */
+ @JsonProperty("EnablePermission")
+ private Integer enablePermission;
+
+ /**
+ * 仅启用权限组作为权限判断依据的群可以设置该字段
+ * 群成员在该群中的默认权限
+ */
+ @JsonProperty("DefaultPermission")
+ private Integer defaultPermission;
+
public CreateGroupRequest() {
}
@@ -119,7 +135,8 @@ public CreateGroupRequest(String ownerAccount, String type, String groupId, Stri
String notification, String faceUrl, Integer maxMemberCount,
String applyJoinOption, String inviteJoinOption,
List appDefinedData, List memberList,
- List appMemberDefinedData, Integer supportTopic) {
+ List appMemberDefinedData, Integer supportTopic,
+ Integer enablePermission, Integer defaultPermission) {
this.ownerAccount = ownerAccount;
this.type = type;
this.groupId = groupId;
@@ -134,6 +151,8 @@ public CreateGroupRequest(String ownerAccount, String type, String groupId, Stri
this.memberList = memberList;
this.appMemberDefinedData = appMemberDefinedData;
this.supportTopic = supportTopic;
+ this.enablePermission = enablePermission;
+ this.defaultPermission = defaultPermission;
}
private CreateGroupRequest(Builder builder) {
@@ -151,6 +170,8 @@ private CreateGroupRequest(Builder builder) {
this.memberList = builder.memberList;
this.appMemberDefinedData = builder.appMemberDefinedData;
this.supportTopic = builder.supportTopic;
+ this.enablePermission = builder.enablePermission;
+ this.defaultPermission = builder.defaultPermission;
}
public static Builder builder() {
@@ -269,6 +290,21 @@ public void setSupportTopic(Integer supportTopic) {
this.supportTopic = supportTopic;
}
+ public Integer getEnablePermission() {
+ return enablePermission;
+ }
+
+ public void setEnablePermission(Integer enablePermission) {
+ this.enablePermission = enablePermission;
+ }
+
+ public Integer getDefaultPermission() {
+ return defaultPermission;
+ }
+
+ public void setDefaultPermission(Integer defaultPermission) {
+ this.defaultPermission = defaultPermission;
+ }
public static final class Builder {
private String ownerAccount;
@@ -285,6 +321,8 @@ public static final class Builder {
private List memberList;
private List appMemberDefinedData;
private Integer supportTopic;
+ private Integer enablePermission;
+ private Integer defaultPermission;
private Builder() {
}
@@ -362,5 +400,15 @@ public Builder supportTopic(Integer supportTopic) {
this.supportTopic = supportTopic;
return this;
}
+
+ public Builder enablePermission(Integer enablePermission) {
+ this.enablePermission = enablePermission;
+ return this;
+ }
+
+ public Builder defaultPermission(Integer defaultPermission) {
+ this.defaultPermission = defaultPermission;
+ return this;
+ }
}
}
diff --git a/src/main/java/io/github/doocs/im/model/request/GetAppIdGroupListRequest.java b/src/main/java/io/github/doocs/im/model/request/GetAppIdGroupListRequest.java
index 93e9568..462500d 100644
--- a/src/main/java/io/github/doocs/im/model/request/GetAppIdGroupListRequest.java
+++ b/src/main/java/io/github/doocs/im/model/request/GetAppIdGroupListRequest.java
@@ -22,6 +22,8 @@ public class GetAppIdGroupListRequest extends GenericRequest implements Serializ
/**
* 群太多时分页拉取标志,第一次填0,以后填上一次返回的值,返回的 Next 为0代表拉完了
+ * 注意:
+ * 该数字需为64位无符号整数,如果使用32位整数解析,可能会有溢出问题导致无法完整拉取列表。
*/
@JsonProperty("Next")
private Long next;
diff --git a/src/main/java/io/github/doocs/im/model/request/GetJoinedGroupListRequest.java b/src/main/java/io/github/doocs/im/model/request/GetJoinedGroupListRequest.java
index 5569700..1d65dac 100644
--- a/src/main/java/io/github/doocs/im/model/request/GetJoinedGroupListRequest.java
+++ b/src/main/java/io/github/doocs/im/model/request/GetJoinedGroupListRequest.java
@@ -59,6 +59,12 @@ public class GetJoinedGroupListRequest extends GenericRequest implements Seriali
@JsonProperty("ResponseFilter")
private ResponseFilter responseFilter;
+ /**
+ * 指定查询的是否为支持话题的群组,1表示支持,0表示不支持。如果指定了此字段,则 GroupType 字段必须为 Community。
+ */
+ @JsonProperty("SupportTopic")
+ private Integer supportTopic;
+
public GetJoinedGroupListRequest() {
}
@@ -67,7 +73,8 @@ public GetJoinedGroupListRequest(String memberAccount) {
}
public GetJoinedGroupListRequest(String memberAccount, Integer withHugeGroups, Integer withNoActiveGroups,
- Integer limit, Integer offset, String groupType, ResponseFilter responseFilter) {
+ Integer limit, Integer offset, String groupType, ResponseFilter responseFilter,
+ Integer supportTopic) {
this.memberAccount = memberAccount;
this.withHugeGroups = withHugeGroups;
this.withNoActiveGroups = withNoActiveGroups;
@@ -75,6 +82,7 @@ public GetJoinedGroupListRequest(String memberAccount, Integer withHugeGroups, I
this.offset = offset;
this.groupType = groupType;
this.responseFilter = responseFilter;
+ this.supportTopic = supportTopic;
}
private GetJoinedGroupListRequest(Builder builder) {
@@ -85,6 +93,7 @@ private GetJoinedGroupListRequest(Builder builder) {
this.offset = builder.offset;
this.groupType = builder.groupType;
this.responseFilter = builder.responseFilter;
+ this.supportTopic = builder.supportTopic;
}
public static Builder builder() {
@@ -147,6 +156,13 @@ public void setResponseFilter(ResponseFilter responseFilter) {
this.responseFilter = responseFilter;
}
+ public Integer getSupportTopic() {
+ return supportTopic;
+ }
+
+ public void setSupportTopic(Integer supportTopic) {
+ this.supportTopic = supportTopic;
+ }
public static final class Builder {
private String memberAccount;
@@ -156,6 +172,7 @@ public static final class Builder {
private Integer offset;
private String groupType;
private ResponseFilter responseFilter;
+ private Integer supportTopic;
private Builder() {
}
@@ -198,5 +215,10 @@ public Builder responseFilter(ResponseFilter responseFilter) {
this.responseFilter = responseFilter;
return this;
}
+
+ public Builder supportTopic(Integer supportTopic) {
+ this.supportTopic = supportTopic;
+ return this;
+ }
}
}
diff --git a/src/main/java/io/github/doocs/im/model/request/ImportGroupRequest.java b/src/main/java/io/github/doocs/im/model/request/ImportGroupRequest.java
index 18f237c..26396b9 100644
--- a/src/main/java/io/github/doocs/im/model/request/ImportGroupRequest.java
+++ b/src/main/java/io/github/doocs/im/model/request/ImportGroupRequest.java
@@ -85,6 +85,12 @@ public class ImportGroupRequest extends GenericRequest implements Serializable {
@JsonProperty("AppDefinedData")
private List