Files
2023-03-13 15:00:34 +08:00

97 lines
3.0 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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; }
}