mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-19 18:22:24 +08:00
feat(work): 随官方更新企业互联获取应用共享信息接口模型
This commit is contained in:
@@ -27,14 +27,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Events
|
|||||||
[System.Xml.Serialization.XmlElement("CorpId", IsNullable = true)]
|
[System.Xml.Serialization.XmlElement("CorpId", IsNullable = true)]
|
||||||
public string? ParentCorpId { get; set; }
|
public string? ParentCorpId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 获取或设置上级企业应用 ID。
|
|
||||||
/// </summary>
|
|
||||||
[Newtonsoft.Json.JsonProperty("AgentId")]
|
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("AgentId")]
|
|
||||||
[System.Xml.Serialization.XmlElement("AgentId")]
|
|
||||||
public int ParentAgentId { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置下级企业应用 ID。
|
/// 获取或设置下级企业应用 ID。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -42,5 +34,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Events
|
|||||||
[System.Text.Json.Serialization.JsonPropertyName("AppId")]
|
[System.Text.Json.Serialization.JsonPropertyName("AppId")]
|
||||||
[System.Xml.Serialization.XmlElement("AppId", IsNullable = true)]
|
[System.Xml.Serialization.XmlElement("AppId", IsNullable = true)]
|
||||||
public int? AgentId { get; set; }
|
public int? AgentId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置上级企业应用 ID。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("AgentId")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("AgentId")]
|
||||||
|
[System.Xml.Serialization.XmlElement("AgentId")]
|
||||||
|
public int ParentAgentId { 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/list_app_share_info 接口的请求。</para>
|
/// <para>表示 [POST] /cgi-bin/corpgroup/corp/list_app_share_info 接口的请求。</para>
|
||||||
@@ -11,5 +11,33 @@
|
|||||||
[Newtonsoft.Json.JsonProperty("agentid")]
|
[Newtonsoft.Json.JsonProperty("agentid")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("agentid")]
|
[System.Text.Json.Serialization.JsonPropertyName("agentid")]
|
||||||
public int? ParentAgentId { get; set; }
|
public int? ParentAgentId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置业务类型。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("business_type")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("business_type")]
|
||||||
|
public int? BusinessType { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置下游企业 CorpId。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("corpid")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("corpid")]
|
||||||
|
public string? CorpId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置分页游标。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("cursor")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("cursor")]
|
||||||
|
public string? Cursor { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置分页每页数量。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("limit")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("limit")]
|
||||||
|
public int? Limit { 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/list_app_share_info 接口的响应。</para>
|
/// <para>表示 [POST] /cgi-bin/corpgroup/corp/list_app_share_info 接口的响应。</para>
|
||||||
@@ -38,5 +38,21 @@
|
|||||||
[Newtonsoft.Json.JsonProperty("corp_list")]
|
[Newtonsoft.Json.JsonProperty("corp_list")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("corp_list")]
|
[System.Text.Json.Serialization.JsonPropertyName("corp_list")]
|
||||||
public Types.Agent[] AgentList { get; set; } = default!;
|
public Types.Agent[] AgentList { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置是否已拉取全部数据。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("ending")]
|
||||||
|
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("ending")]
|
||||||
|
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
|
||||||
|
public bool IsEnding { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置翻页标记。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("next_cursor")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("next_cursor")]
|
||||||
|
public string? NextCursor { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"errcode": 0,
|
"errcode": 0,
|
||||||
"errmsg": "ok",
|
"errmsg": "ok",
|
||||||
"chains": [
|
"chains": [
|
||||||
|
@@ -1,3 +1,7 @@
|
|||||||
{
|
{
|
||||||
"agentid": 1111
|
"agentid": 1111,
|
||||||
|
"business_type": 1,
|
||||||
|
"corpid": "wwcorp",
|
||||||
|
"limit": 100,
|
||||||
|
"cursor": "xxxxxx"
|
||||||
}
|
}
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"errcode": 0,
|
"errcode": 0,
|
||||||
"errmsg": "ok",
|
"errmsg": "ok",
|
||||||
|
"ending": 0,
|
||||||
"corp_list": [
|
"corp_list": [
|
||||||
{
|
{
|
||||||
"corpid": "wwcorpid1",
|
"corpid": "wwcorpid1",
|
||||||
@@ -12,5 +13,6 @@
|
|||||||
"corp_name": "测试企业2",
|
"corp_name": "测试企业2",
|
||||||
"agentid": 1112
|
"agentid": 1112
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"next_cursor": "next_cursor1111"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user