Skip to content

Commit

Permalink
Merge pull request #116 from Billzjh/NeuChar/QrcodeWorkRegist
Browse files Browse the repository at this point in the history
通过企业微信的推广二维码注册的企业,会回调注册成功的通知,这里添加对于复杂模型的支持
  • Loading branch information
JeffreySu authored Dec 10, 2020
2 parents 9b44eec + c63c641 commit 8f73957
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Senparc.NeuChar.Entities
{
/// <summary>
/// 企业微信服务商推广码注册成功返回的通讯录迁移的凭证信息。仅当注册推广包开启通讯录迁移接口时返回该参数
/// </summary>
public class ContactSyncToken
{
/// <summary>
/// 通讯录api接口调用凭证,有全部通讯录读写权限
/// </summary>
public string AccessToken { get; set; }
/// <summary>
/// AccessToken的有效时间(秒)
/// </summary>
public int ExpiresIn { get; set; }
}

/// <summary>
/// 企业微信服务商推广码注册成功返回的 授权管理员的信息
/// </summary>
public class AuthUserInfoModel
{
/// <summary>
/// 授权管理员的userid
/// </summary>
public string UserId { get; set; }
}
}
9 changes: 9 additions & 0 deletions src/Senparc.NeuChar/Helpers/EntityHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,15 @@ public static class EntityHelper
FillClassValue<AroundBeacon>(entity, root, propName, prop);
break;

#region 企业微信推广码注册
case "ContactSyncToken":
FillClassValue<ContactSyncToken>(entity, root, propName, prop);
break;
case "AuthUserInfoModel":
FillClassValue<AuthUserInfoModel>(entity, root, propName, prop);
break;
#endregion

#region 开放平台-小程序
case "ThirdFasteRegisterInfo": //开放平台-小程序-快速注册
FillClassValue<ThirdFasteRegisterInfo>(entity, root, propName, prop);
Expand Down

0 comments on commit 8f73957

Please sign in to comment.