mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2026-03-10 00:13:36 +08:00
feat(work): 新增获取会议发起记录接口
This commit is contained in:
@@ -0,0 +1,28 @@
|
|||||||
|
namespace SKIT.FlurlHttpClient.Wechat.Work.Events
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// <para>表示 EVENT.meeting_statistics 事件的数据。</para>
|
||||||
|
/// <para>
|
||||||
|
/// REF: <br/>
|
||||||
|
/// <![CDATA[ https://developer.work.weixin.qq.com/document/path/99648 ]]>
|
||||||
|
/// </para>
|
||||||
|
/// </summary>
|
||||||
|
public class MeetingStatisticsEvent : WechatWorkEvent
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置变更类型。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("ChangeType")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("ChangeType")]
|
||||||
|
[System.Xml.Serialization.XmlElement("ChangeType")]
|
||||||
|
public string ChangeType { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置会议状态。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("Status")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("Status")]
|
||||||
|
[System.Xml.Serialization.XmlElement("Status")]
|
||||||
|
public int Status { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1870,6 +1870,31 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
|||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region Statistics
|
||||||
|
/// <summary>
|
||||||
|
/// <para>异步调用 [POST] /cgi-bin/meeting/statistics/get_start_list 接口。</para>
|
||||||
|
/// <para>
|
||||||
|
/// REF: <br/>
|
||||||
|
/// <![CDATA[ https://developer.work.weixin.qq.com/document/path/99651 ]]>
|
||||||
|
/// </para>
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="client"></param>
|
||||||
|
/// <param name="request"></param>
|
||||||
|
/// <param name="cancellationToken"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static async Task<Models.CgibinMeetingStatisticsGetStartListResponse> ExecuteCgibinMeetingStatisticsGetStartListAsync(this WechatWorkClient client, Models.CgibinMeetingStatisticsGetStartListRequest request, CancellationToken cancellationToken = default)
|
||||||
|
{
|
||||||
|
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||||
|
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||||
|
|
||||||
|
IFlurlRequest flurlReq = client
|
||||||
|
.CreateFlurlRequest(request, HttpMethod.Post, "cgi-bin", "meeting", "statistics", "get_start_list")
|
||||||
|
.SetQueryParam("access_token", request.AccessToken);
|
||||||
|
|
||||||
|
return await client.SendFlurlRequestAsJsonAsync<Models.CgibinMeetingStatisticsGetStartListResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
#region Vip
|
#region Vip
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>异步调用 [POST] /cgi-bin/meeting/vip/submit_batch_add_job 接口。</para>
|
/// <para>异步调用 [POST] /cgi-bin/meeting/vip/submit_batch_add_job 接口。</para>
|
||||||
|
|||||||
@@ -0,0 +1,43 @@
|
|||||||
|
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// <para>表示 [POST] /cgi-bin/meeting/statistics/get_start_list 接口的请求。</para>
|
||||||
|
/// </summary>
|
||||||
|
public class CgibinMeetingStatisticsGetStartListRequest : WechatWorkRequest
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置查询类型。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("type")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("type")]
|
||||||
|
public int Type { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置查询范围起始时间戳。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("begin_time")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("begin_time")]
|
||||||
|
public long BeginTimestamp { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置查询范围结束时间戳。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("end_time")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("end_time")]
|
||||||
|
public long EndTimestamp { 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; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// <para>表示 [POST] /cgi-bin/meeting/statistics/get_start_list 接口的响应。</para>
|
||||||
|
/// </summary>
|
||||||
|
public class CgibinMeetingStatisticsGetStartListResponse : WechatWorkResponse
|
||||||
|
{
|
||||||
|
public static class Types
|
||||||
|
{
|
||||||
|
public class Meeting
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置会议发起者的 UserId。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("userid")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("userid")]
|
||||||
|
public string UserId { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置会议发起时间戳。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("start_time")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("start_time")]
|
||||||
|
public long StartTimestamp { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置会议列表。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("meeting_list")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("meeting_list")]
|
||||||
|
public Types.Meeting[] MeetingList { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置翻页标记。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("next_cursor")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("next_cursor")]
|
||||||
|
public string? NextCursor { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
<xml>
|
||||||
|
<ToUserName><![CDATA[toUser]]></ToUserName>
|
||||||
|
<FromUserName><![CDATA[fromUser]]></FromUserName>
|
||||||
|
<CreateTime>1348831860</CreateTime>
|
||||||
|
<MsgType><![CDATA[event]]></MsgType>
|
||||||
|
<Event><![CDATA[meeting_statistics]]></Event>
|
||||||
|
<ChangeType><![CDATA[start_meeting]]></ChangeType>
|
||||||
|
<Status>1</Status>
|
||||||
|
</xml>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"type": 1,
|
||||||
|
"begin_time": 1700000000,
|
||||||
|
"end_time": 1700001000,
|
||||||
|
"limit": 1000,
|
||||||
|
"cursor": "CURSOR"
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"errcode": 0,
|
||||||
|
"errmsg": "ok",
|
||||||
|
"next_cursor": "abcd",
|
||||||
|
"meeting_list": [
|
||||||
|
{
|
||||||
|
"userid": "USERID1",
|
||||||
|
"start_time": 1700000000
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"userid": "USERID2",
|
||||||
|
"start_time": 1700000000
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user