Skip to content

Commit

Permalink
🎨 #3059【企业微信】客户详情接口新增视频号相关字段
Browse files Browse the repository at this point in the history
  • Loading branch information
tcsp authored and binarywang committed Jun 20, 2023
1 parent 921abaf commit b0c35ad
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -82,4 +88,22 @@ public static class Tag 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;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ public void testFromJson() {
" \"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" +
Expand Down Expand Up @@ -172,6 +176,8 @@ public void testFromJson() {
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("李总");
Expand Down

0 comments on commit b0c35ad

Please sign in to comment.