-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
小程序代码管理增加 查询小程序版本信息 接口功能 #2588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
小程序代码管理增加 查询小程序版本信息 接口功能 #2588
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
91 changes: 91 additions & 0 deletions
91
...in-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/code/WxMaCodeVersionInfo.java
This file contains hidden or 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,91 @@ | ||
package cn.binarywang.wx.miniapp.bean.code; | ||
|
||
import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder; | ||
import com.google.gson.annotations.SerializedName; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* 查询小程序版本信息 | ||
* | ||
* @author <a href="https://github.com/leonxi">LeonXi</a> | ||
* @since 2022-04-13 16:45 | ||
*/ | ||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class WxMaCodeVersionInfo implements Serializable { | ||
|
||
private static final long serialVersionUID = 6929700728659511688L; | ||
|
||
/** | ||
* 体验版信息 | ||
*/ | ||
@SerializedName("exp_info") | ||
private ExpInfo expInfo; | ||
|
||
/** | ||
* 线上版信息 | ||
*/ | ||
@SerializedName("release_info") | ||
private ReleaseInfo releaseInfo; | ||
|
||
public static WxMaCodeVersionInfo fromJson(String json) { | ||
return WxMaGsonBuilder.create().fromJson(json, WxMaCodeVersionInfo.class); | ||
} | ||
|
||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public static class ExpInfo implements Serializable { | ||
|
||
private static final long serialVersionUID = 6315578419554592943L; | ||
|
||
/** | ||
* 提交体验版的时间 | ||
*/ | ||
@SerializedName("exp_time") | ||
private Long expTime; | ||
|
||
/** | ||
* 体验版版本信息 | ||
*/ | ||
@SerializedName("exp_version") | ||
private String expVersion; | ||
|
||
/** | ||
* 体验版版本描述 | ||
*/ | ||
@SerializedName("exp_desc") | ||
private String expDesc; | ||
} | ||
|
||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public static class ReleaseInfo implements Serializable { | ||
|
||
private static final long serialVersionUID = 2098307354673939939L; | ||
|
||
/** | ||
* 发布线上版的时间 | ||
*/ | ||
@SerializedName("release_time") | ||
private Long releaseTime; | ||
|
||
/** | ||
* 线上版版本信息 | ||
*/ | ||
@SerializedName("release_version") | ||
private String releaseVersion; | ||
|
||
/** | ||
* 线上版本描述 | ||
*/ | ||
@SerializedName("release_desc") | ||
private String releaseDesc; | ||
} | ||
} |
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.