public class WxOpenMaPrivacyServiceImpl extends Object implements WxOpenMaPrivacyService
OPEN_GET_PRIVACY_SETTING, OPEN_SET_PRIVACY_SETTING, OPEN_UPLOAD_PRIVACY_FILE| 构造器和说明 |
|---|
WxOpenMaPrivacyServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
GetPrivacySettingResult |
getPrivacySetting(Integer privacyVer)
查询小程序用户隐私保护指引
文档地址:https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/privacy_config/get_privacy_setting.html
|
void |
setPrivacySetting(SetPrivacySetting dto)
设置小程序用户隐私保护指引
文档地址:https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/privacy_config/set_privacy_setting.html
|
UploadPrivacyFileResult |
uploadPrivacyFile(String content)
上传小程序用户隐私保护指引文件
本接口用于上传自定义的小程序的用户隐私保护指引
仅限文本文件, 限制文件大小为不超过100kb,否则会报错
文档地址:https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/privacy_config/upload_privacy_exfile.html
|
public GetPrivacySettingResult getPrivacySetting(@Nullable Integer privacyVer) throws WxErrorException
WxOpenMaPrivacyServicegetPrivacySetting 在接口中 WxOpenMaPrivacyServiceprivacyVer - 1表示现网版本,即,传1则该接口返回的内容是现网版本的;2表示开发版,即,传2则该接口返回的内容是开发版本的。默认是2。WxErrorException - 如果出错,抛出此异常public void setPrivacySetting(SetPrivacySetting dto) throws WxErrorException
WxOpenMaPrivacyServicesetPrivacySetting 在接口中 WxOpenMaPrivacyServicedto - 参数对象WxErrorException - 如果出错,抛出此异常public UploadPrivacyFileResult uploadPrivacyFile(String content) throws WxErrorException
WxOpenMaPrivacyServiceuploadPrivacyFile 在接口中 WxOpenMaPrivacyServicecontent - 文本文件内容WxErrorException - 如果出错,抛出此异常Copyright © 2021. All rights reserved.