🎨 #3059【企业微信】客户详情接口新增视频号相关字段

This commit is contained in:
兔子先生 2023-06-20 14:06:49 +08:00 committed by Binary Wang
parent 921abaf01f
commit b0c35add60
2 changed files with 31 additions and 1 deletions

View File

@ -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.20Android 8.0.21且添加时间不早于2022年4月21日否则添加场景值为0
*/
private Integer source;
}
}

View File

@ -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("李总");