From c9803879f512bcd6a5bf28362e46df13dcaa54d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BC=AA=E8=B4=B5=E8=8D=A3?= Date: Thu, 21 Jul 2022 15:33:49 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20#2744=20=E3=80=90=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E3=80=91=E8=8E=B7=E5=8F=96=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E6=B0=B8=E4=B9=85=E6=8E=88=E6=9D=83=E7=A0=81=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E8=A1=A5=E5=85=85=E6=8E=A8=E5=B9=BF=E7=A0=81=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cp/bean/WxCpTpPermanentCodeInfo.java | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java index 108fd27e2..eaf10feae 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpPermanentCodeInfo.java @@ -45,6 +45,12 @@ public class WxCpTpPermanentCodeInfo extends WxCpBaseResp { */ @SerializedName("auth_user_info") private AuthUserInfo authUserInfo; + + /** + * 推广二维码安装相关信息 + */ + @SerializedName("register_code_info") + private RegisterCodeInfo registerCodeInfo; /** * 企业当前生效的版本信息 @@ -278,6 +284,34 @@ public class WxCpTpPermanentCodeInfo extends WxCpBaseResp { @SerializedName("open_userid") private String openUserid; } + + /** + * 推广二维码安装相关信息 + */ + @Getter + @Setter + public static class RegisterCodeInfo implements Serializable { + private static final long serialVersionUID = -5028321625140879571L; + + /** + * 注册码 + */ + @SerializedName("register_code") + private String registerCode; + + /** + * 推广包ID + */ + @SerializedName("template_id") + private String templateId; + + /** + * 仅当获取注册码指定该字段时才返回 + */ + @SerializedName("state") + private String state; + + } /** * 应用对应的权限