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.
Merge commit '505cdafe98c036428c4bb4aec70c3b717bde0faa' into local
* commit '505cdafe98c036428c4bb4aec70c3b717bde0faa': binarywang#705 企业微信增加获取外部联系人详情接口 binarywang#705 企业微信用户相关接口增加成员对外信息external_profile binarywang#727 小程序模块增加内容安全接口 binarywang#730 公众号模块增加客服输入状态接口 优化代码
- Loading branch information
Showing
16 changed files
with
750 additions
and
81 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
126 changes: 126 additions & 0 deletions
126
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpUserExternalContactInfo.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,126 @@ | ||
package me.chanjar.weixin.cp.bean; | ||
|
||
import java.util.List; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; | ||
|
||
/** | ||
* <pre> | ||
* 外部联系人详情 | ||
* Created by Binary Wang on 2018/9/16. | ||
* 参考文档:https://work.weixin.qq.com/api/doc#13878 | ||
* </pre> | ||
* | ||
* @author <a href="https://github.com/binarywang">Binary Wang</a> | ||
*/ | ||
@Getter | ||
@Setter | ||
public class WxCpUserExternalContactInfo { | ||
@SerializedName("external_contact") | ||
private ExternalContact externalContact; | ||
|
||
@SerializedName("follow_user") | ||
private List<FollowedUser> followedUsers; | ||
|
||
@Getter | ||
@Setter | ||
public static class ExternalContact { | ||
@SerializedName("external_userid") | ||
private String externalUserId; | ||
|
||
@SerializedName("position") | ||
private String position; | ||
|
||
@SerializedName("name") | ||
private String name; | ||
|
||
@SerializedName("avatar") | ||
private String avatar; | ||
|
||
@SerializedName("corp_name") | ||
private String corpName; | ||
|
||
@SerializedName("corp_full_name") | ||
private String corpFullName; | ||
|
||
@SerializedName("type") | ||
private Integer type; | ||
|
||
@SerializedName("gender") | ||
private Integer gender; | ||
|
||
@SerializedName("unionid") | ||
private String unionId; | ||
|
||
@SerializedName("external_profile") | ||
private ExternalProfile externalProfile; | ||
} | ||
|
||
@Setter | ||
@Getter | ||
public static class ExternalProfile { | ||
@SerializedName("external_attr") | ||
private List<ExternalAttribute> externalAttrs; | ||
} | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public static class ExternalAttribute { | ||
@Setter | ||
@Getter | ||
public static class Text { | ||
private String value; | ||
} | ||
|
||
@Setter | ||
@Getter | ||
public static class Web { | ||
private String title; | ||
private String url; | ||
} | ||
|
||
@Setter | ||
@Getter | ||
public static class MiniProgram { | ||
@SerializedName("pagepath") | ||
private String pagePath; | ||
private String appid; | ||
private String title; | ||
} | ||
|
||
private int type; | ||
|
||
private String name; | ||
|
||
private Text text; | ||
|
||
private Web web; | ||
|
||
@SerializedName("miniprogram") | ||
private MiniProgram miniProgram; | ||
} | ||
|
||
@Setter | ||
@Getter | ||
public static class FollowedUser { | ||
@SerializedName("userid") | ||
private String userId; | ||
private String remark; | ||
private String description; | ||
@SerializedName("createtime") | ||
private Long createTime; | ||
} | ||
|
||
public static WxCpUserExternalContactInfo fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, WxCpUserExternalContactInfo.class); | ||
} | ||
} |
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
Oops, something went wrong.