mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-04-05 17:38:05 +08:00
🎨 #3059【企业微信】客户详情接口新增视频号相关字段
This commit is contained in:
parent
921abaf01f
commit
b0c35add60
@ -52,6 +52,12 @@ public class FollowedUser implements Serializable {
|
||||
@SerializedName("oper_userid")
|
||||
private String operatorUserId;
|
||||
|
||||
/**
|
||||
* 该成员添加此客户的来源add_way为10时,对应的视频号信息
|
||||
*/
|
||||
@SerializedName("wechat_channels")
|
||||
private WechatChannels wechatChannels;
|
||||
|
||||
/**
|
||||
* The type Tag.
|
||||
*/
|
||||
@ -82,4 +88,22 @@ public class FollowedUser implements Serializable {
|
||||
*/
|
||||
private int type;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type WechatChannels.
|
||||
*/
|
||||
@Data
|
||||
public static class WechatChannels implements Serializable {
|
||||
private static final long serialVersionUID = -7940080094561469369L;
|
||||
|
||||
/**
|
||||
* 视频号名称
|
||||
*/
|
||||
private String nickname;
|
||||
|
||||
/**
|
||||
* 视频号添加场景,0-未知 1-视频号主页 2-视频号直播间 3-视频号留资服务(微信版本要求:iOS ≥ 8.0.20,Android ≥ 8.0.21,且添加时间不早于2022年4月21日。否则添加场景值为0)
|
||||
*/
|
||||
private Integer source;
|
||||
}
|
||||
}
|
||||
|
@ -76,7 +76,11 @@ public class WxCpUserExternalContactInfoTest {
|
||||
" \"userid\": \"rocky\",\n" +
|
||||
" \"remark\": \"李部长\",\n" +
|
||||
" \"description\": \"对接采购事物\",\n" +
|
||||
" \"createtime\": 1525779812\n" +
|
||||
" \"createtime\": 1525779812,\n" +
|
||||
" \"wechat_channels\": {\n" +
|
||||
" \"nickname\": \"视频号名称\",\n" +
|
||||
" \"source\": 1\n" +
|
||||
" }" +
|
||||
" },\n" +
|
||||
" {\n" +
|
||||
" \"userid\": \"tommy\",\n" +
|
||||
@ -172,6 +176,8 @@ public class WxCpUserExternalContactInfoTest {
|
||||
assertThat(followedUsers.get(0).getRemark()).isEqualTo("李部长");
|
||||
assertThat(followedUsers.get(0).getDescription()).isEqualTo("对接采购事物");
|
||||
assertThat(followedUsers.get(0).getCreateTime()).isEqualTo(1525779812);
|
||||
assertThat(followedUsers.get(0).getWechatChannels().getNickname()).isEqualTo("视频号名称");
|
||||
assertThat(followedUsers.get(0).getWechatChannels().getSource()).isEqualTo(1);
|
||||
|
||||
assertThat(followedUsers.get(1).getUserId()).isEqualTo("tommy");
|
||||
assertThat(followedUsers.get(1).getRemark()).isEqualTo("李总");
|
||||
|
Loading…
Reference in New Issue
Block a user