From 4dd069ae191733376d99cc7f4e175fcd993495af Mon Sep 17 00:00:00 2001
From: Antenbabby <18116874+Antenbabby@users.noreply.github.com>
Date: Sat, 20 Jan 2024 11:08:54 +0800
Subject: [PATCH] build: release v0.4.01 (#175)
---
README.md | 2 +-
README_CN.md | 2 +-
docs/guide/README.md | 2 +-
docs/guide/quickstart.md | 4 ++--
package-lock.json | 4 ++--
package.json | 2 +-
pom.xml | 2 +-
.../im/model/message/TIMFileMsgElement.java | 16 ++++++++--------
.../doocs/im/model/request/GenericRequest.java | 6 +++++-
.../im/model/request/SendGroupMsgRequest.java | 2 +-
.../doocs/im/model/response/GenericResult.java | 5 ++++-
src/main/resources/version.properties | 2 +-
12 files changed, 28 insertions(+), 21 deletions(-)
diff --git a/README.md b/README.md
index 6ab5f40a..5094d533 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.0
+ 0.4.01
```
diff --git a/README_CN.md b/README_CN.md
index 5be03c7f..d51728d0 100644
--- a/README_CN.md
+++ b/README_CN.md
@@ -26,7 +26,7 @@
io.github.doocs
im-server-sdk-java
- 0.4.0
+ 0.4.01
```
diff --git a/docs/guide/README.md b/docs/guide/README.md
index ab6bc5f5..5a411172 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 083868dc..91e0a29a 100644
--- a/docs/guide/quickstart.md
+++ b/docs/guide/quickstart.md
@@ -10,14 +10,14 @@
io.github.doocs
im-server-sdk-java
- 0.4.0
+ 0.4.01
```
### Gradle
```gradle
-implementation group: 'io.github.doocs', name: 'im-server-sdk-java', version: '0.4.0'
+implementation group: 'io.github.doocs', name: 'im-server-sdk-java', version: '0.4.01'
```
### 下载 JAR
diff --git a/package-lock.json b/package-lock.json
index cb36e6e8..3b8b4424 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "qcloud-im-server-sdk-java",
- "version": "0.4.0",
+ "version": "0.4.01",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "qcloud-im-server-sdk-java",
- "version": "0.4.0",
+ "version": "0.4.01",
"license": "Apache-2.0",
"devDependencies": {
"@vuepress/plugin-search": "^2.0.0-rc.0",
diff --git a/package.json b/package.json
index d6990396..93b7c6f8 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "qcloud-im-server-sdk-java",
- "version": "0.4.0",
+ "version": "0.4.01",
"description": "腾讯云 IM 服务端 SDK API 文档 Java 版",
"main": "index.js",
"scripts": {
diff --git a/pom.xml b/pom.xml
index d918062f..6b733fdd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
io.github.doocs
im-server-sdk-java
- 0.4.0
+ 0.4.01
jar
qcloud-im-server-sdk-java
diff --git a/src/main/java/io/github/doocs/im/model/message/TIMFileMsgElement.java b/src/main/java/io/github/doocs/im/model/message/TIMFileMsgElement.java
index 4efe083d..e0fe13de 100644
--- a/src/main/java/io/github/doocs/im/model/message/TIMFileMsgElement.java
+++ b/src/main/java/io/github/doocs/im/model/message/TIMFileMsgElement.java
@@ -31,8 +31,8 @@ public TIMFileMsgElement(FileMsgContent msgContent) {
this.msgContent = msgContent;
}
- public TIMFileMsgElement(String url, String uuid, Integer fileSize, String filename, Integer downloadFlag) {
- this(new FileMsgContent(url, uuid, fileSize, filename, downloadFlag));
+ public TIMFileMsgElement(String url, String uuid, Integer fileSize, String fileName, Integer downloadFlag) {
+ this(new FileMsgContent(url, uuid, fileSize, fileName, downloadFlag));
}
public FileMsgContent getMsgContent() {
@@ -55,7 +55,7 @@ public static class FileMsgContent {
private Integer fileSize;
@JsonProperty("FileName")
- private String filename;
+ private String fileName;
@JsonProperty("Download_Flag")
private Integer downloadFlag;
@@ -63,11 +63,11 @@ public static class FileMsgContent {
public FileMsgContent() {
}
- public FileMsgContent(String url, String uuid, Integer fileSize, String filename, Integer downloadFlag) {
+ public FileMsgContent(String url, String uuid, Integer fileSize, String fileName, Integer downloadFlag) {
this.url = url;
this.uuid = uuid;
this.fileSize = fileSize;
- this.filename = filename;
+ this.fileName = fileName;
this.downloadFlag = downloadFlag;
}
@@ -96,11 +96,11 @@ public void setFileSize(Integer fileSize) {
}
public String getFilename() {
- return filename;
+ return fileName;
}
- public void setFilename(String filename) {
- this.filename = filename;
+ public void setFilename(String fileName) {
+ this.fileName = fileName;
}
public Integer getDownloadFlag() {
diff --git a/src/main/java/io/github/doocs/im/model/request/GenericRequest.java b/src/main/java/io/github/doocs/im/model/request/GenericRequest.java
index 4d571b62..2b307bbb 100644
--- a/src/main/java/io/github/doocs/im/model/request/GenericRequest.java
+++ b/src/main/java/io/github/doocs/im/model/request/GenericRequest.java
@@ -1,8 +1,12 @@
package io.github.doocs.im.model.request;
+import java.io.Serializable;
+
/**
* @author bingo
* @since 2021/7/27 15:47
*/
-public abstract class GenericRequest {
+public abstract class GenericRequest implements Serializable {
+ private static final long serialVersionUID = 1L;
+
}
diff --git a/src/main/java/io/github/doocs/im/model/request/SendGroupMsgRequest.java b/src/main/java/io/github/doocs/im/model/request/SendGroupMsgRequest.java
index 3fc368f6..7203b9a6 100644
--- a/src/main/java/io/github/doocs/im/model/request/SendGroupMsgRequest.java
+++ b/src/main/java/io/github/doocs/im/model/request/SendGroupMsgRequest.java
@@ -78,7 +78,7 @@ public class SendGroupMsgRequest extends GenericRequest implements Serializable
/**
* 消息自定义数据(云端保存,会发送到对端,程序卸载重装后还能拉取到)
*/
- @JsonProperty("cloudCustomData")
+ @JsonProperty("CloudCustomData")
private String cloudCustomData;
/**
diff --git a/src/main/java/io/github/doocs/im/model/response/GenericResult.java b/src/main/java/io/github/doocs/im/model/response/GenericResult.java
index 5320320b..ddb78632 100644
--- a/src/main/java/io/github/doocs/im/model/response/GenericResult.java
+++ b/src/main/java/io/github/doocs/im/model/response/GenericResult.java
@@ -2,11 +2,14 @@
import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.Serializable;
+
/**
* @author bingo
* @since 2021/7/27 15:43
*/
-public abstract class GenericResult {
+public abstract class GenericResult implements Serializable {
+ private static final long serialVersionUID = 1L;
/**
* 请求处理的结果,OK 表示处理成功,FAIL 表示失败,如果为 FAIL,ErrorInfo 带上失败原因
* {@link io.github.doocs.im.constant.ActionStatus}
diff --git a/src/main/resources/version.properties b/src/main/resources/version.properties
index 4b623e30..842ee364 100644
--- a/src/main/resources/version.properties
+++ b/src/main/resources/version.properties
@@ -1 +1 @@
-version=0.4.0
+version=0.4.01