添加项目文件。

This commit is contained in:
2023-03-13 15:00:34 +08:00
parent 42bf06ca3e
commit 1d73df3235
1205 changed files with 185078 additions and 0 deletions

View 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; }
}

View 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; }
}