mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-15 23:13:32 +08:00
feat(work): 随官方更新更新成员接口模型
This commit is contained in:
parent
6e8a09c5e9
commit
02f76dc17f
@ -1,4 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
@ -9,6 +9,16 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class BusinessEmailAliasList
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置企业邮箱别名列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("item")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("item")]
|
||||
public IList<string> Items { get; set; } = new List<string>();
|
||||
}
|
||||
|
||||
public class ExtendedAttribute : CgibinUserCreateRequest.Types.ExtendedAttribute
|
||||
{
|
||||
}
|
||||
@ -25,6 +35,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userid")]
|
||||
public string UserId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置新的成员账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("new_userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("new_userid")]
|
||||
public string? NewUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置成员名称。
|
||||
/// </summary>
|
||||
@ -53,6 +70,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("biz_mail")]
|
||||
public string? BusinessEmail { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置企业邮箱别名列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("biz_mail_alias")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("biz_mail_alias")]
|
||||
public Types.BusinessEmailAliasList? BusinessEmailAliasList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置手机号码。
|
||||
/// </summary>
|
||||
|
@ -1,15 +1,19 @@
|
||||
{
|
||||
{
|
||||
"userid": "zhangsan",
|
||||
"name": "李四",
|
||||
"department": [1],
|
||||
"order": [10],
|
||||
"department": [ 1 ],
|
||||
"order": [ 10 ],
|
||||
"position": "后台工程师",
|
||||
"mobile": "13800000000",
|
||||
"gender": "1",
|
||||
"email": "zhangsan@gzdev.com",
|
||||
"is_leader_in_dept": [1],
|
||||
"email": "zhangsan@qq.com",
|
||||
"biz_mail": "zhangsan@tencent.com",
|
||||
"biz_mail_alias": {
|
||||
"item": [ "jack@tencent.com", "hr@tencent.com" ]
|
||||
},
|
||||
"is_leader_in_dept": [ 1 ],
|
||||
"enable": 1,
|
||||
"direct_leader": ["lisi", "wangwu"],
|
||||
"direct_leader": [ "lisi", "wangwu" ],
|
||||
"avatar_mediaid": "2-G6nrLmr5EC3MNb_-zL1dDdzkd0p7cNliYu9V5w7o8K0",
|
||||
"telephone": "020-123456",
|
||||
"alias": "jackzhang",
|
||||
|
Loading…
Reference in New Issue
Block a user