添加项目文件。
This commit is contained in:
97
common/Tnb.Thirdparty/WeChat/Internal/QYMember.cs
vendored
Normal file
97
common/Tnb.Thirdparty/WeChat/Internal/QYMember.cs
vendored
Normal file
@@ -0,0 +1,97 @@
|
||||
namespace JNPF.Extras.Thirdparty.WeChat;
|
||||
|
||||
/// <summary>
|
||||
/// 企业用户.
|
||||
/// </summary>
|
||||
public sealed class QYMember
|
||||
{
|
||||
/// <summary>
|
||||
/// 摘要:
|
||||
/// [创建、更新 必填]成员UserID。对应管理端的帐号,企业内必须唯一。不区分大小写,长度为1~64个字节.
|
||||
/// </summary>
|
||||
public string userid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 摘要:
|
||||
/// [创建必填]成员名称。长度为1~64个字符.
|
||||
/// </summary>
|
||||
public string name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 摘要:
|
||||
/// 英文名。长度为1-64个字节,由字母、数字、点(.)、减号(-)、空格或下划线(_)组成.
|
||||
/// </summary>
|
||||
public string english_name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 摘要:
|
||||
/// 手机号码。企业内必须唯一,mobile/email二者不能同时为空.
|
||||
/// </summary>
|
||||
public string mobile { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 摘要:
|
||||
/// [创建必填]成员所属部门id列表,不超过20个.
|
||||
/// </summary>
|
||||
public long[] department { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 摘要:
|
||||
/// 部门内的排序值,默认为0,成员次序以创建时间从小到大排列。数量必须和department一致,数值越大排序越前面。有效的值范围是[0, 2^32).
|
||||
/// </summary>
|
||||
public long[] order { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 摘要:
|
||||
/// 职位信息。长度为0~128个字符.
|
||||
/// </summary>
|
||||
public string position { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 摘要:
|
||||
/// 性别。1表示男性,2表示女性.
|
||||
/// </summary>
|
||||
public string gender { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 摘要:
|
||||
/// 邮箱。长度不超过64个字节,且为有效的email格式。企业内必须唯一,mobile/email二者不能同时为空.
|
||||
/// </summary>
|
||||
public string email { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 摘要:
|
||||
/// 上级字段,标识是否为上级。在审批等应用里可以用来标识上级审批人.
|
||||
/// </summary>
|
||||
public int isleader { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 摘要:
|
||||
/// 启用/禁用成员。1表示启用成员,0表示禁用成员.
|
||||
/// </summary>
|
||||
public int enable { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 摘要:
|
||||
/// 成员头像的mediaid,通过素材管理接口上传图片获得的mediaid.
|
||||
/// </summary>
|
||||
public string avatar_mediaid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 摘要:
|
||||
/// 座机。由1-32位的纯数字或’-‘号组成.
|
||||
/// </summary>
|
||||
public string telephone { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 摘要:
|
||||
/// 自定义字段。自定义字段需要先在WEB管理端添加,见扩展属性添加方法,否则忽略未知属性的赋值。自定义字段长度为0~32个字符,超过将被截断.
|
||||
/// </summary>
|
||||
public object extattr { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 摘要:
|
||||
/// 成员对外属性,字段详情见对外属性: http://work.weixin.qq.com/api/doc#13450.
|
||||
/// </summary>
|
||||
public object external_profile { get; set; }
|
||||
}
|
||||
52
common/Tnb.Thirdparty/WeChat/Internal/WechatMPEvent.cs
vendored
Normal file
52
common/Tnb.Thirdparty/WeChat/Internal/WechatMPEvent.cs
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
namespace JNPF.Extras.Thirdparty.WeChat.Internal;
|
||||
|
||||
/// <summary>
|
||||
/// 公众号事件.
|
||||
/// </summary>
|
||||
public class WechatMPEvent
|
||||
{
|
||||
/// <summary>
|
||||
/// 签名.
|
||||
/// </summary>
|
||||
public string signature { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 时间戳.
|
||||
/// </summary>
|
||||
public string timestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// nonce.
|
||||
/// </summary>
|
||||
public string nonce { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 算出的值.
|
||||
/// </summary>
|
||||
public string echostr { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 开发者微信号.
|
||||
/// </summary>
|
||||
public string ToUserName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 发送方帐号(一个OpenID).
|
||||
/// </summary>
|
||||
public string FromUserName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 消息创建时间 (整型).
|
||||
/// </summary>
|
||||
public long CreateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 消息类型,event.
|
||||
/// </summary>
|
||||
public string MsgType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 事件类型,subscribe(订阅)、unsubscribe(取消订阅).
|
||||
/// </summary>
|
||||
public string Event { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user