From 264a3ed3d5eb62a641780df01116a6d5422d4edf Mon Sep 17 00:00:00 2001 From: wangqing <408564126@qq.com> Date: Sun, 3 Mar 2024 09:07:11 +0800 Subject: [PATCH] fix: add downloadUrl for app checkVersion --- .../com/luoo/user/dto/response/AppUpdateDTO.java | 6 ++++++ .../main/java/com/luoo/user/pojo/AppUpdate.java | 14 ++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/luoo_user/src/main/java/com/luoo/user/dto/response/AppUpdateDTO.java b/luoo_user/src/main/java/com/luoo/user/dto/response/AppUpdateDTO.java index b87a83f..18472a9 100644 --- a/luoo_user/src/main/java/com/luoo/user/dto/response/AppUpdateDTO.java +++ b/luoo_user/src/main/java/com/luoo/user/dto/response/AppUpdateDTO.java @@ -30,4 +30,10 @@ public class AppUpdateDTO{ */ @ApiModelProperty(value = "强制更新") private Boolean forceUpdate; + + /** + * 下载url + */ + @ApiModelProperty(value = "下载url") + private String url; } diff --git a/luoo_user/src/main/java/com/luoo/user/pojo/AppUpdate.java b/luoo_user/src/main/java/com/luoo/user/pojo/AppUpdate.java index 785ac19..a6d47bd 100644 --- a/luoo_user/src/main/java/com/luoo/user/pojo/AppUpdate.java +++ b/luoo_user/src/main/java/com/luoo/user/pojo/AppUpdate.java @@ -44,6 +44,11 @@ public class AppUpdate implements Serializable { */ private Boolean forceUpdate; + /** + * 下载url + */ + private String url; + /** * 创建时间 */ @@ -139,6 +144,15 @@ public class AppUpdate implements Serializable { return this.grayscaleDevice; } + + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + @Override public String toString() { return "自增ID:" + (id == null ? "空" : id) + ",版本号:" + (version == null ? "空" : version) + ",更新描述:" + (updateDesc == null ? "空" : updateDesc) + ",强制更新:" + (forceUpdate == null ? "空" : forceUpdate) + ",创建时间:" + (createTime == null ? "空" : DateUtil.format(createTime, DateTimePatternEnum.YYYY_MM_DD_HH_MM_SS.getPattern())) + ",0:未发布 1:灰度发布 2:全网发布:" + (status == null ? "空" : status) + ",灰度设备ID:" + (grayscaleDevice == null ? "空" : grayscaleDevice);