mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-17 19:19:55 +08:00
feat(work): 随官方更新上下游通讯录管理相关接口模型
This commit is contained in:
parent
01a5205b2d
commit
0073d13fb4
@ -1,4 +1,4 @@
|
|||||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>表示 [POST] /cgi-bin/corpgroup/corp/get_chain_corpinfo_list 接口的请求。</para>
|
/// <para>表示 [POST] /cgi-bin/corpgroup/corp/get_chain_corpinfo_list 接口的请求。</para>
|
||||||
@ -20,12 +20,24 @@
|
|||||||
public int? GroupId { get; set; }
|
public int? GroupId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置是否递归获取子分组企业。
|
/// 获取或设置是否需要返回未加入的企业。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Newtonsoft.Json.JsonProperty("fetch_child")]
|
[Newtonsoft.Json.JsonProperty("need_pending")]
|
||||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
|
[System.Text.Json.Serialization.JsonPropertyName("need_pending")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("fetch_child")]
|
public bool? RequirePending { get; set; }
|
||||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
|
|
||||||
public bool? RequireFetchChild { 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>
|
/// <summary>
|
||||||
/// <para>表示 [POST] /cgi-bin/corpgroup/corp/get_chain_corpinfo_list 接口的响应。</para>
|
/// <para>表示 [POST] /cgi-bin/corpgroup/corp/get_chain_corpinfo_list 接口的响应。</para>
|
||||||
@ -21,7 +21,14 @@
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[Newtonsoft.Json.JsonProperty("corpid")]
|
[Newtonsoft.Json.JsonProperty("corpid")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("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>
|
/// <summary>
|
||||||
/// 获取或设置企业名称。
|
/// 获取或设置企业名称。
|
||||||
@ -43,6 +50,15 @@
|
|||||||
[Newtonsoft.Json.JsonProperty("invite_userid")]
|
[Newtonsoft.Json.JsonProperty("invite_userid")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("invite_userid")]
|
[System.Text.Json.Serialization.JsonPropertyName("invite_userid")]
|
||||||
public string? InviteUserId { get; set; }
|
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")]
|
[Newtonsoft.Json.JsonProperty("group_corps")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("group_corps")]
|
[System.Text.Json.Serialization.JsonPropertyName("group_corps")]
|
||||||
public Types.GroupCorp[] GroupCorpList { get; set; } = default!;
|
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>
|
/// </summary>
|
||||||
[Newtonsoft.Json.JsonProperty("corpid")]
|
[Newtonsoft.Json.JsonProperty("corpid")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("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>
|
/// <summary>
|
||||||
/// <para>表示 [POST] /cgi-bin/corpgroup/corp/get_chain_corpinfo 接口的响应。</para>
|
/// <para>表示 [POST] /cgi-bin/corpgroup/corp/get_chain_corpinfo 接口的响应。</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CgibinCorpGroupCorpGetChainCorpInfoResponse : WechatWorkResponse
|
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>
|
/// <summary>
|
||||||
/// 获取或设置分组 ID。
|
/// 获取或设置分组 ID。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -20,24 +27,19 @@
|
|||||||
public string? CustomId { get; set; }
|
public string? CustomId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置企业名称。
|
/// 获取或设置企业验证认证状态。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Newtonsoft.Json.JsonProperty("corp_name")]
|
[Newtonsoft.Json.JsonProperty("qualification_status")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("corp_name")]
|
[System.Text.Json.Serialization.JsonPropertyName("qualification_status")]
|
||||||
public string CorpName { get; set; } = default!;
|
public int? QualificationStatus { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置企业是否验证。
|
/// 获取或设置企业是否已加入。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Newtonsoft.Json.JsonProperty("corp_verified")]
|
[Newtonsoft.Json.JsonProperty("is_joined")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("corp_verified")]
|
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
|
||||||
public bool IsCorpVerified { get; set; }
|
[System.Text.Json.Serialization.JsonPropertyName("is_joined")]
|
||||||
|
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
|
||||||
/// <summary>
|
public bool IsJoined { get; set; }
|
||||||
/// 获取或设置企业是否认证。
|
|
||||||
/// </summary>
|
|
||||||
[Newtonsoft.Json.JsonProperty("corp_certified")]
|
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("corp_certified")]
|
|
||||||
public bool IsCorpCertified { get; set; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
{
|
{
|
||||||
"chain_id": "Chxxxxxx",
|
"chain_id": "Chxxxxxx",
|
||||||
"groupid": 1,
|
"groupid": 1,
|
||||||
"fetch_child": 0
|
"need_pending": false,
|
||||||
|
"cursor": "",
|
||||||
|
"limit": 0
|
||||||
}
|
}
|
||||||
|
@ -1,13 +1,17 @@
|
|||||||
{
|
{
|
||||||
"errcode": 0,
|
"errcode": 0,
|
||||||
"errmsg": "ok",
|
"errmsg": "ok",
|
||||||
|
"has_more": false,
|
||||||
|
"next_cursor": "xxx",
|
||||||
"group_corps": [
|
"group_corps": [
|
||||||
{
|
{
|
||||||
"groupid": 2,
|
"groupid": 2,
|
||||||
"corpid": "wwxxxx",
|
"corpid": "wwxxxx",
|
||||||
"corp_name": "美馨粮油公司",
|
"corp_name": "美馨粮油公司",
|
||||||
"custom_id": "custom_id",
|
"custom_id": "custom_id",
|
||||||
"invite_userid": "zhangsan"
|
"invite_userid": "zhangsan",
|
||||||
|
"pending_corpid": "wwxxxx",
|
||||||
|
"is_joined": 1
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
"chain_id": "Chxxxxxx",
|
"chain_id": "Chxxxxxx",
|
||||||
"corpid": "xxxxx"
|
"corpid": "xxxxx",
|
||||||
|
"pending_corpid": "xxxxx"
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"errcode": 0,
|
"errcode": 0,
|
||||||
"errmsg": "ok",
|
"errmsg": "ok",
|
||||||
"corp_name": "美馨粮油公司",
|
"corp_name": "美馨粮油公司",
|
||||||
"corp_verified": false,
|
"qualification_status": 1,
|
||||||
"corp_certified": false,
|
|
||||||
"custom_id": "xxxxx",
|
"custom_id": "xxxxx",
|
||||||
"groupid": 1
|
"groupid": 1,
|
||||||
|
"is_joined": false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user