Skip to content

Commit

Permalink
feat(work): 随官方更新企业互联获取应用共享信息接口模型
Browse files Browse the repository at this point in the history
  • Loading branch information
fudiwei committed Apr 9, 2024
1 parent 2cb4a26 commit 0d89e74
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,20 @@ public class ShareAgentChangeEvent : WechatWorkEvent
[System.Xml.Serialization.XmlElement("CorpId", IsNullable = true)]
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>
/// 获取或设置下级企业应用 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("AppId")]
[System.Text.Json.Serialization.JsonPropertyName("AppId")]
[System.Xml.Serialization.XmlElement("AppId", IsNullable = true)]
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; }
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/corpgroup/corp/list_app_share_info 接口的请求。</para>
Expand All @@ -11,5 +11,33 @@ public class CgibinCorpGroupCorpListAppShareInfoRequest : WechatWorkRequest
[Newtonsoft.Json.JsonProperty("agentid")]
[System.Text.Json.Serialization.JsonPropertyName("agentid")]
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; }
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/corpgroup/corp/list_app_share_info 接口的响应。</para>
Expand Down Expand Up @@ -38,5 +38,21 @@ public class Agent
[Newtonsoft.Json.JsonProperty("corp_list")]
[System.Text.Json.Serialization.JsonPropertyName("corp_list")]
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; }
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"errcode": 0,
"errmsg": "ok",
"chains": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"agentid": 1111
{
"agentid": 1111,
"business_type": 1,
"corpid": "wwcorp",
"limit": 100,
"cursor": "xxxxxx"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
{
"errcode": 0,
"errmsg": "ok",
"ending": 0,
"corp_list": [
{
"corpid": "wwcorpid1",
Expand All @@ -12,5 +13,6 @@
"corp_name": "测试企业2",
"agentid": 1112
}
]
],
"next_cursor": "next_cursor1111"
}

0 comments on commit 0d89e74

Please sign in to comment.