mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-21 02:58:06 +08:00
feat(work): 随官方更新上下游通讯录管理相关接口模型
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/corpgroup/corp/get_chain_corpinfo_list 接口的请求。</para>
|
||||
@@ -20,12 +20,24 @@
|
||||
public int? GroupId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否递归获取子分组企业。
|
||||
/// 获取或设置是否需要返回未加入的企业。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("fetch_child")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("fetch_child")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
|
||||
public bool? RequireFetchChild { get; set; }
|
||||
[Newtonsoft.Json.JsonProperty("need_pending")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("need_pending")]
|
||||
public bool? RequirePending { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页每页数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("limit")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("limit")]
|
||||
public int? Limit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置翻页标记。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cursor")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cursor")]
|
||||
public string? Cursor { get; set; }
|
||||
}
|
||||
}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/corpgroup/corp/get_chain_corpinfo_list 接口的响应。</para>
|
||||
@@ -21,7 +21,14 @@
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("corpid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("corpid")]
|
||||
public string CorpId { get; set; } = default!;
|
||||
public string? CorpId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置未加入的企业 CorpId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pending_corpid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pending_corpid")]
|
||||
public string? PendingCorpId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置企业名称。
|
||||
@@ -43,6 +50,15 @@
|
||||
[Newtonsoft.Json.JsonProperty("invite_userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("invite_userid")]
|
||||
public string? InviteUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置企业是否已加入。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("is_joined")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("is_joined")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
|
||||
public bool IsJoined { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,5 +68,19 @@
|
||||
[Newtonsoft.Json.JsonProperty("group_corps")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("group_corps")]
|
||||
public Types.GroupCorp[] GroupCorpList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否还有更多数据。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("has_more")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("has_more")]
|
||||
public bool HasMore { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置翻页标记。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("next_cursor")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("next_cursor")]
|
||||
public string? NextCursor { get; set; }
|
||||
}
|
||||
}
|
||||
|
@@ -17,6 +17,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("corpid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("corpid")]
|
||||
public string CorpId { get; set; } = string.Empty;
|
||||
public string? CorpId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置未加入的企业 CorpId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pending_corpid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pending_corpid")]
|
||||
public string? PendingCorpId { get; set; }
|
||||
}
|
||||
}
|
||||
|
@@ -1,10 +1,17 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/corpgroup/corp/get_chain_corpinfo 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinCorpGroupCorpGetChainCorpInfoResponse : WechatWorkResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置企业名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("corp_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("corp_name")]
|
||||
public string CorpName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分组 ID。
|
||||
/// </summary>
|
||||
@@ -20,24 +27,19 @@
|
||||
public string? CustomId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置企业名称。
|
||||
/// 获取或设置企业验证认证状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("corp_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("corp_name")]
|
||||
public string CorpName { get; set; } = default!;
|
||||
[Newtonsoft.Json.JsonProperty("qualification_status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("qualification_status")]
|
||||
public int? QualificationStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置企业是否验证。
|
||||
/// 获取或设置企业是否已加入。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("corp_verified")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("corp_verified")]
|
||||
public bool IsCorpVerified { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置企业是否认证。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("corp_certified")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("corp_certified")]
|
||||
public bool IsCorpCertified { get; set; }
|
||||
[Newtonsoft.Json.JsonProperty("is_joined")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("is_joined")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
|
||||
public bool IsJoined { get; set; }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user