Skip to content
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

调整批量获取客户详情返回值 #2655

Merged
merged 1 commit into from
Jun 20, 2022
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ bak.zip
*.DotSettings
.vs
.vscode
.idea/
applicationhost.config
packages/
*/**/App_Data/SenparcTraceLog/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@

----------------------------------------------------------------*/

using System;

using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Senparc.Weixin.Entities;

namespace Senparc.Weixin.Work.AdvancedAPIs.External.ExternalJson
Expand All @@ -39,28 +36,42 @@ public class GetExternalContactInfoBatchResult : WorkJsonResult

public class ExternalContactList
{
public ExternalContact external_contact { get; set; }
public External_Contact external_contact { get; set; }
public FollowUser follow_info { get; set; }
}


public class ExternalContact
{
public string external_userid { get; set; }
public string name { get; set; }
public int type { get; set; }
public string avatar { get; set; }
public int gender { get; set; }
public string unionid { get; set; }
}


public class FollowUser
{
/// <summary>添加了此外部联系人的企业成员userid</summary>
public string userid { get; set; }

/// <summary>该成员对此外部联系人的备注</summary>
public string remark { get; set; }

/// <summary>该成员对此外部联系人的描述</summary>
public string description { get; set; }
public long createtime { get; set; }
public string[] tag_id { get; set; }
public string[] remark_mobiles { get; set; }

/// <summary>该成员添加此外部联系人的时间</summary>
public int createtime { get; set; }

/// <summary>企业自定义的state参数,用于区分客户具体是通过哪个「联系我」添加,由企业通过创建「联系我」方式指定</summary>
public string state { get; set; }

/// <summary>
/// 发起添加的userid,如果成员主动添加,为成员的userid;如果是客户主动添加,则为客户的外部联系人userid;如果是内部成员共享/管理员分配,则为对应的成员/管理员userid
/// </summary>
public string oper_userid { get; set; }

/// <summary>该成员添加此客户的来源</summary>
public int add_way { get; set; }

/// <summary>该成员对此客户备注的企业名称</summary>
public string remark_corp_name { get; set; }

/// <summary>该成员对此客户备注的手机号码,第三方不可获取</summary>
public string[] remark_mobiles { get; set; }

public string[] tag_id { get; set; }
}
}