-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🆕 #2658 【开放平台】第三方平台小程序用户隐私保护指引模块增加申请隐私相关接口
- Loading branch information
Showing
7 changed files
with
215 additions
and
9 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
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
47 changes: 47 additions & 0 deletions
47
...java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/ApplyPrivacyInterface.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,47 @@ | ||
package me.chanjar.weixin.open.bean.ma.privacy; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* 申请隐私接口 | ||
* | ||
* @author <a href="https://www.sacoc.cn">广州跨界</a> | ||
*/ | ||
@Getter | ||
@Setter | ||
public class ApplyPrivacyInterface { | ||
|
||
/** | ||
* 接口英文名称,如:wx.chooseAddress/wx.choosePoi/wx.getLocation/wx.onLocationChange/wx.chooseLocation | ||
*/ | ||
@SerializedName("api_name") | ||
private String apiName; | ||
|
||
/** | ||
* 申请说原因,不超过300个字符;需要以utf-8编码提交,否则会出现审核失败 | ||
*/ | ||
@SerializedName("content") | ||
private String content; | ||
|
||
/** | ||
* (辅助网页)例如,上传官网网页链接用于辅助审核 | ||
*/ | ||
@SerializedName("url_list") | ||
private List<String> urlList; | ||
|
||
/** | ||
* (辅助图片)填写图片的url ,最多10个 | ||
*/ | ||
@SerializedName("pic_list") | ||
private List<String> picList; | ||
|
||
/** | ||
* (辅助视频)填写视频的链接 ,最多支持1个;视频格式只支持mp4格式 | ||
*/ | ||
@SerializedName("video_list") | ||
private List<String> videoList; | ||
} |
23 changes: 23 additions & 0 deletions
23
...pen/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/ApplyPrivacyInterfaceResult.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,23 @@ | ||
package me.chanjar.weixin.open.bean.ma.privacy; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import me.chanjar.weixin.open.bean.result.WxOpenResult; | ||
|
||
/** | ||
* 获取接口列表 响应 | ||
* | ||
* @author <a href="https://www.sacoc.cn">广州跨界</a> | ||
*/ | ||
@Getter | ||
@Setter | ||
public class ApplyPrivacyInterfaceResult extends WxOpenResult { | ||
|
||
/** | ||
* 审核ID | ||
*/ | ||
@SerializedName("audit_id") | ||
private Long auditId; | ||
|
||
} |
92 changes: 92 additions & 0 deletions
92
...-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/GetPrivacyInterfaceResult.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,92 @@ | ||
package me.chanjar.weixin.open.bean.ma.privacy; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import me.chanjar.weixin.open.bean.result.WxOpenResult; | ||
import org.springframework.lang.Nullable; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* 获取接口列表 响应 | ||
* | ||
* @author <a href="https://www.sacoc.cn">广州跨界</a> | ||
*/ | ||
@Getter | ||
@Setter | ||
public class GetPrivacyInterfaceResult extends WxOpenResult { | ||
|
||
/** | ||
* 隐私接口列表 | ||
*/ | ||
@SerializedName("interface_list") | ||
private List<Interface> interfaceList; | ||
|
||
|
||
/** | ||
* 隐私接口 | ||
*/ | ||
@Getter | ||
@Setter | ||
public static class Interface { | ||
|
||
/** | ||
* 接口英文名称,如:wx.chooseAddress/wx.choosePoi/wx.getLocation/wx.onLocationChange/wx.chooseLocation | ||
*/ | ||
@SerializedName("api_name") | ||
private String apiName; | ||
|
||
/** | ||
* 接口中文名称,如:获取用户收货地址/选择位置,支持模糊定位(精确到市)和精确定位混选/获取当前的地理位置、速度/监听实时地理位置变化事件/打开地图选择位置 | ||
*/ | ||
@SerializedName("api_ch_name") | ||
private String apiChName; | ||
|
||
/** | ||
* api描述 | ||
*/ | ||
@SerializedName("api_desc") | ||
private String apiDesc; | ||
|
||
/** | ||
* 申请时间 ,该字段发起申请后才会有 | ||
*/ | ||
@Nullable | ||
@SerializedName("apply_time") | ||
private String applyTime; | ||
|
||
/** | ||
* 接口状态,该字段发起申请后才会有,1待申请开通,2无权限,3申请中,4申请失败,5已开通 | ||
*/ | ||
@Nullable | ||
@SerializedName("status") | ||
private String status; | ||
|
||
/** | ||
* 申请单号,该字段发起申请后才会有 | ||
*/ | ||
@Nullable | ||
@SerializedName("audit_id") | ||
private String auditId; | ||
|
||
/** | ||
* 申请被驳回原因或者无权限,该字段申请驳回时才会有 | ||
*/ | ||
@Nullable | ||
@SerializedName("fail_reason") | ||
private String failReason; | ||
|
||
/** | ||
* api文档链接 | ||
*/ | ||
@SerializedName("fail_reapi_linkason") | ||
private String apiLink; | ||
|
||
/** | ||
* 分组名,如:地理位置 | ||
*/ | ||
@SerializedName("group_name") | ||
private String groupName; | ||
} | ||
} |