|
@@ -18,142 +18,143 @@ import java.util.List;
|
|
|
@Getter
|
|
|
@Setter
|
|
|
public class WxCpUserExternalContactInfo implements Serializable {
|
|
|
- private static final long serialVersionUID = -5696099236344075582L;
|
|
|
-
|
|
|
- @SerializedName("external_contact")
|
|
|
- private ExternalContact externalContact;
|
|
|
-
|
|
|
- @SerializedName("follow_user")
|
|
|
- private List<FollowedUser> followedUsers;
|
|
|
-
|
|
|
- @Getter
|
|
|
- @Setter
|
|
|
- public static class ExternalContact implements Serializable {
|
|
|
private static final long serialVersionUID = -5696099236344075582L;
|
|
|
|
|
|
- @SerializedName("external_userid")
|
|
|
- private String externalUserId;
|
|
|
+ @SerializedName("external_contact")
|
|
|
+ private ExternalContact externalContact;
|
|
|
|
|
|
- @SerializedName("position")
|
|
|
- private String position;
|
|
|
+ @SerializedName("follow_user")
|
|
|
+ private List<FollowedUser> followedUsers;
|
|
|
|
|
|
- @SerializedName("name")
|
|
|
- private String name;
|
|
|
+ @Getter
|
|
|
+ @Setter
|
|
|
+ public static class ExternalContact implements Serializable {
|
|
|
+ private static final long serialVersionUID = -5696099236344075582L;
|
|
|
|
|
|
- @SerializedName("avatar")
|
|
|
- private String avatar;
|
|
|
+ @SerializedName("external_userid")
|
|
|
+ private String externalUserId;
|
|
|
|
|
|
- @SerializedName("corp_name")
|
|
|
- private String corpName;
|
|
|
+ @SerializedName("position")
|
|
|
+ private String position;
|
|
|
|
|
|
- @SerializedName("corp_full_name")
|
|
|
- private String corpFullName;
|
|
|
+ @SerializedName("name")
|
|
|
+ private String name;
|
|
|
|
|
|
- @SerializedName("type")
|
|
|
- private Integer type;
|
|
|
+ @SerializedName("avatar")
|
|
|
+ private String avatar;
|
|
|
|
|
|
- @SerializedName("gender")
|
|
|
- private Integer gender;
|
|
|
+ @SerializedName("corp_name")
|
|
|
+ private String corpName;
|
|
|
|
|
|
- @SerializedName("unionid")
|
|
|
- private String unionId;
|
|
|
+ @SerializedName("corp_full_name")
|
|
|
+ private String corpFullName;
|
|
|
|
|
|
- @SerializedName("external_profile")
|
|
|
- private ExternalProfile externalProfile;
|
|
|
- }
|
|
|
+ @SerializedName("type")
|
|
|
+ private Integer type;
|
|
|
|
|
|
- @Setter
|
|
|
- @Getter
|
|
|
- public static class ExternalProfile implements Serializable {
|
|
|
- private static final long serialVersionUID = -5696099236344075582L;
|
|
|
+ @SerializedName("gender")
|
|
|
+ private Integer gender;
|
|
|
|
|
|
- @SerializedName("external_attr")
|
|
|
- private List<ExternalAttribute> externalAttrs;
|
|
|
- }
|
|
|
+ @SerializedName("unionid")
|
|
|
+ private String unionId;
|
|
|
|
|
|
- @Data
|
|
|
- @Builder
|
|
|
- @NoArgsConstructor
|
|
|
- @AllArgsConstructor
|
|
|
- public static class ExternalAttribute implements Serializable {
|
|
|
- private static final long serialVersionUID = -5696099236344075582L;
|
|
|
- @Setter
|
|
|
- @Getter
|
|
|
- public static class Text implements Serializable {
|
|
|
- private static final long serialVersionUID = -5696099236344075582L;
|
|
|
-
|
|
|
- private String value;
|
|
|
+ @SerializedName("external_profile")
|
|
|
+ private ExternalProfile externalProfile;
|
|
|
}
|
|
|
|
|
|
@Setter
|
|
|
@Getter
|
|
|
- public static class Web implements Serializable {
|
|
|
- private static final long serialVersionUID = -5696099236344075582L;
|
|
|
+ public static class ExternalProfile implements Serializable {
|
|
|
+ private static final long serialVersionUID = -5696099236344075582L;
|
|
|
|
|
|
- private String title;
|
|
|
- private String url;
|
|
|
+ @SerializedName("external_attr")
|
|
|
+ private List<ExternalAttribute> externalAttrs;
|
|
|
}
|
|
|
|
|
|
- @Setter
|
|
|
- @Getter
|
|
|
- public static class MiniProgram implements Serializable {
|
|
|
- private static final long serialVersionUID = -5696099236344075582L;
|
|
|
+ @Data
|
|
|
+ @Builder
|
|
|
+ @NoArgsConstructor
|
|
|
+ @AllArgsConstructor
|
|
|
+ public static class ExternalAttribute implements Serializable {
|
|
|
+ private static final long serialVersionUID = -5696099236344075582L;
|
|
|
|
|
|
- @SerializedName("pagepath")
|
|
|
- private String pagePath;
|
|
|
- private String appid;
|
|
|
- private String title;
|
|
|
- }
|
|
|
+ @Setter
|
|
|
+ @Getter
|
|
|
+ public static class Text implements Serializable {
|
|
|
+ private static final long serialVersionUID = -5696099236344075582L;
|
|
|
|
|
|
- private int type;
|
|
|
+ private String value;
|
|
|
+ }
|
|
|
|
|
|
- private String name;
|
|
|
+ @Setter
|
|
|
+ @Getter
|
|
|
+ public static class Web implements Serializable {
|
|
|
+ private static final long serialVersionUID = -5696099236344075582L;
|
|
|
|
|
|
- private Text text;
|
|
|
+ private String title;
|
|
|
+ private String url;
|
|
|
+ }
|
|
|
|
|
|
- private Web web;
|
|
|
+ @Setter
|
|
|
+ @Getter
|
|
|
+ public static class MiniProgram implements Serializable {
|
|
|
+ private static final long serialVersionUID = -5696099236344075582L;
|
|
|
|
|
|
- @SerializedName("miniprogram")
|
|
|
- private MiniProgram miniProgram;
|
|
|
- }
|
|
|
+ @SerializedName("pagepath")
|
|
|
+ private String pagePath;
|
|
|
+ private String appid;
|
|
|
+ private String title;
|
|
|
+ }
|
|
|
|
|
|
- @Setter
|
|
|
- @Getter
|
|
|
- public static class FollowedUser implements Serializable {
|
|
|
- private static final long serialVersionUID = -5696099236344075582L;
|
|
|
-
|
|
|
- @SerializedName("userid")
|
|
|
- private String userId;
|
|
|
- private String remark;
|
|
|
- private String description;
|
|
|
- @SerializedName("createtime")
|
|
|
- private Long createTime;
|
|
|
- private String state;
|
|
|
- @SerializedName("remark_company")
|
|
|
- private String remarkCompany;
|
|
|
- @SerializedName("remark_mobiles")
|
|
|
- private String[] remarkMobiles;
|
|
|
- private Tag[] tags;
|
|
|
- @SerializedName("add_way")
|
|
|
- private Integer addWay;
|
|
|
- @SerializedName("oper_userid")
|
|
|
- private String operUserid;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- public static WxCpUserExternalContactInfo fromJson(String json) {
|
|
|
- return WxCpGsonBuilder.create().fromJson(json, WxCpUserExternalContactInfo.class);
|
|
|
- }
|
|
|
-
|
|
|
- @Setter
|
|
|
- @Getter
|
|
|
- public static class Tag implements Serializable {
|
|
|
- private static final long serialVersionUID = -5696099236344075582L;
|
|
|
+ private int type;
|
|
|
|
|
|
- @SerializedName("group_name")
|
|
|
- private String groupName;
|
|
|
- @SerializedName("tag_name")
|
|
|
- private String tagName;
|
|
|
- private int type;
|
|
|
- }
|
|
|
+ private String name;
|
|
|
+
|
|
|
+ private Text text;
|
|
|
+
|
|
|
+ private Web web;
|
|
|
+
|
|
|
+ @SerializedName("miniprogram")
|
|
|
+ private MiniProgram miniProgram;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Setter
|
|
|
+ @Getter
|
|
|
+ public static class FollowedUser implements Serializable {
|
|
|
+ private static final long serialVersionUID = -5696099236344075582L;
|
|
|
+
|
|
|
+ @SerializedName("userid")
|
|
|
+ private String userId;
|
|
|
+ private String remark;
|
|
|
+ private String description;
|
|
|
+ @SerializedName("createtime")
|
|
|
+ private Long createTime;
|
|
|
+ private String state;
|
|
|
+ @SerializedName("remark_company")
|
|
|
+ private String remarkCompany;
|
|
|
+ @SerializedName("remark_mobiles")
|
|
|
+ private String[] remarkMobiles;
|
|
|
+ private Tag[] tags;
|
|
|
+ @SerializedName("add_way")
|
|
|
+ private Integer addWay;
|
|
|
+ @SerializedName("oper_userid")
|
|
|
+ private String operUserid;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ public static WxCpUserExternalContactInfo fromJson(String json) {
|
|
|
+ return WxCpGsonBuilder.create().fromJson(json, WxCpUserExternalContactInfo.class);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Setter
|
|
|
+ @Getter
|
|
|
+ public static class Tag implements Serializable {
|
|
|
+ private static final long serialVersionUID = -5696099236344075582L;
|
|
|
+
|
|
|
+ @SerializedName("group_name")
|
|
|
+ private String groupName;
|
|
|
+ @SerializedName("tag_name")
|
|
|
+ private String tagName;
|
|
|
+ private int type;
|
|
|
+ }
|
|
|
}
|