Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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