forked from binarywang/WxJava
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🆕 binarywang#3124 【小程序】实现查询 URL Link的接口
- Loading branch information
Showing
6 changed files
with
157 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 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
35 changes: 35 additions & 0 deletions
35
...iapp/src/main/java/cn/binarywang/wx/miniapp/bean/urllink/request/QueryUrlLinkRequest.java
This file contains 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,35 @@ | ||
package cn.binarywang.wx.miniapp.bean.urllink.request; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.experimental.Accessors; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* <pre> | ||
* 查询小程序 URL Link参数对象 | ||
* </pre> | ||
* @author <a href="https://github.com/imyzt">imyzt</a> | ||
* @since 2023-11-13 | ||
*/ | ||
@Data | ||
@Builder | ||
@Accessors(chain = true) | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class QueryUrlLinkRequest implements Serializable { | ||
|
||
/** | ||
* 小程序 url_link | ||
* <pre> | ||
* 是否必填: 是 | ||
* </pre> | ||
*/ | ||
@SerializedName("url_link") | ||
private String urlLink; | ||
|
||
} |
79 changes: 79 additions & 0 deletions
79
...pp/src/main/java/cn/binarywang/wx/miniapp/bean/urllink/response/QueryUrlLinkResponse.java
This file contains 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,79 @@ | ||
package cn.binarywang.wx.miniapp.bean.urllink.response; | ||
|
||
import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse; | ||
import com.google.gson.annotations.SerializedName; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.NoArgsConstructor; | ||
import lombok.experimental.Accessors; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* <pre> | ||
* 查询小程序 URL Link响应对象 | ||
* </pre> | ||
* @author <a href="https://github.com/imyzt">imyzt</a> | ||
* @since 2023-11-13 | ||
*/ | ||
@Data | ||
@EqualsAndHashCode(callSuper = true) | ||
@Builder | ||
@Accessors(chain = true) | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class QueryUrlLinkResponse extends WxMaBaseResponse implements Serializable { | ||
|
||
/** | ||
* 访问Link的用户openid,为空表示未被访问过 | ||
*/ | ||
@SerializedName("visit_openid") | ||
private String visitOpenid; | ||
|
||
/** | ||
* url_link 配置 | ||
*/ | ||
@SerializedName("url_link_info") | ||
private UrlLinkInfo urlLinkInfo; | ||
|
||
@Data | ||
@Builder | ||
public static class UrlLinkInfo { | ||
|
||
/** | ||
* 小程序 appid | ||
*/ | ||
private String appid; | ||
|
||
/** | ||
* 小程序页面路径 | ||
*/ | ||
private String path; | ||
|
||
/** | ||
* 小程序页面query | ||
*/ | ||
private String query; | ||
|
||
/** | ||
* 创建时间,为 Unix 时间戳 | ||
*/ | ||
@SerializedName("create_time") | ||
private Long createTime; | ||
|
||
/** | ||
* 到期失效时间,为 Unix 时间戳,0 表示永久生效 | ||
*/ | ||
@SerializedName("expire_time") | ||
private Long expireTime; | ||
|
||
/** | ||
* 要打开的小程序版本。正式版为"release",体验版为"trial",开发版为"develop" | ||
*/ | ||
@SerializedName("env_version") | ||
private String envVersion; | ||
} | ||
|
||
} |
This file contains 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 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