mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-12-29 18:04:42 +08:00
feat(work): 封装部分企业微信接口
This commit is contained in:
@@ -617,7 +617,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExternalContactGroupChatGetResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
#region GroupChatStatistic
|
||||
#region GroupChatStatistics
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/externalcontact/groupchat/statistic 接口。</para>
|
||||
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90000/90135/92133 </para>
|
||||
@@ -627,7 +627,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExternalContactGroupChatStatisticResponse> ExecuteCgibinExternalContactGroupChatStatisticAsync(this WechatWorkClient client, Models.CgibinExternalContactGroupChatStatisticRequest request, CancellationToken cancellationToken = default)
|
||||
public static async Task<Models.CgibinExternalContactGroupChatStatisticsResponse> ExecuteCgibinExternalContactGroupChatStatisticsAsync(this WechatWorkClient client, Models.CgibinExternalContactGroupChatStatisticsRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
@@ -637,7 +637,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExternalContactGroupChatStatisticResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExternalContactGroupChatStatisticsResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -649,7 +649,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExternalContactGroupChatStatisticGroupByDayResponse> ExecuteCgibinExternalContactGroupChatStatisticGroupByDayAsync(this WechatWorkClient client, Models.CgibinExternalContactGroupChatStatisticGroupByDayRequest request, CancellationToken cancellationToken = default)
|
||||
public static async Task<Models.CgibinExternalContactGroupChatStatisticsGroupByDayResponse> ExecuteCgibinExternalContactGroupChatStatisticsGroupByDayAsync(this WechatWorkClient client, Models.CgibinExternalContactGroupChatStatisticsGroupByDayRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
@@ -659,7 +659,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExternalContactGroupChatStatisticGroupByDayResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExternalContactGroupChatStatisticsGroupByDayResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
@@ -0,0 +1,463 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Flurl;
|
||||
using Flurl.Http;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work
|
||||
{
|
||||
public static class WechatWorkClientExecuteCgibinReportExtensions
|
||||
{
|
||||
#region Grid
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/report/grid/add 接口。</para>
|
||||
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90000/90135/94478 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinReportGridAddResponse> ExecuteCgibinReportGridAddAsync(this WechatWorkClient client, Models.CgibinReportGridAddRequest 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
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "report", "grid", "add")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinReportGridAddResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/report/grid/update 接口。</para>
|
||||
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90000/90135/94479 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinReportGridUpdateResponse> ExecuteCgibinReportGridUpdateAsync(this WechatWorkClient client, Models.CgibinReportGridUpdateRequest 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
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "report", "grid", "update")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinReportGridUpdateResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/report/grid/delete 接口。</para>
|
||||
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90000/90135/94480 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinReportGridDeleteResponse> ExecuteCgibinReportGridDeleteAsync(this WechatWorkClient client, Models.CgibinReportGridDeleteRequest 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
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "report", "grid", "delete")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinReportGridDeleteResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/report/grid/list 接口。</para>
|
||||
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90000/90135/94481 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinReportGridListResponse> ExecuteCgibinReportGridListAsync(this WechatWorkClient client, Models.CgibinReportGridListRequest 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
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "report", "grid", "list")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinReportGridListResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/report/grid/get_user_grid_info 接口。</para>
|
||||
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90000/90135/94482 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinReportGridGetUserGridInfoResponse> ExecuteCgibinReportGridGetUserGridInfoAsync(this WechatWorkClient client, Models.CgibinReportGridGetUserGridInfoRequest 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
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "report", "grid", "get_user_grid_info")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinReportGridGetUserGridInfoResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region GridCategory
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/report/grid/add_cata 接口。</para>
|
||||
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90000/90135/94536 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinReportGridAddCategoryResponse> ExecuteCgibinReportGridAddCategoryAsync(this WechatWorkClient client, Models.CgibinReportGridAddCategoryRequest 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
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "report", "grid", "add_cata")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinReportGridAddCategoryResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/report/grid/update_cata 接口。</para>
|
||||
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90000/90135/94537 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinReportGridUpdateCategoryResponse> ExecuteCgibinReportGridUpdateCategoryAsync(this WechatWorkClient client, Models.CgibinReportGridUpdateCategoryRequest 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
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "report", "grid", "update_cata")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinReportGridUpdateCategoryResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/report/grid/delete_cata 接口。</para>
|
||||
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90000/90135/94538 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinReportGridDeleteCategoryResponse> ExecuteCgibinReportGridDeleteCategoryAsync(this WechatWorkClient client, Models.CgibinReportGridDeleteCategoryRequest 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
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "report", "grid", "delete_cata")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinReportGridDeleteCategoryResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/report/grid/list_cata 接口。</para>
|
||||
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90000/90135/94540 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinReportGridListCategoryResponse> ExecuteCgibinReportGridListCategoryAsync(this WechatWorkClient client, Models.CgibinReportGridListCategoryRequest 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
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "report", "grid", "list_cata")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinReportGridListCategoryResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Patrol
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /cgi-bin/report/patrol/get_grid_info 接口。</para>
|
||||
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90000/90135/93531 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinReportPatrolGetGridInfoResponse> ExecuteCgibinReportPatrolGetGridInfoAsync(this WechatWorkClient client, Models.CgibinReportPatrolGetGridInfoRequest 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
|
||||
.CreateRequest(HttpMethod.Get, "cgi-bin", "report", "patrol", "get_grid_info")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestAsync<Models.CgibinReportPatrolGetGridInfoResponse>(flurlReq, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/report/patrol/get_corp_status 接口。</para>
|
||||
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90000/90135/93532 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinReportPatrolGetCorpStatusResponse> ExecuteCgibinReportPatrolGetCorpStatusAsync(this WechatWorkClient client, Models.CgibinReportPatrolGetCorpStatusRequest 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
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "report", "patrol", "get_corp_status")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinReportPatrolGetCorpStatusResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/report/patrol/get_user_status 接口。</para>
|
||||
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90000/90135/93533 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinReportPatrolGetUserStatusResponse> ExecuteCgibinReportPatrolGetUserStatusAsync(this WechatWorkClient client, Models.CgibinReportPatrolGetUserStatusRequest 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
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "report", "patrol", "get_user_status")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinReportPatrolGetUserStatusResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/report/patrol/category_statistic 接口。</para>
|
||||
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90000/90135/93534 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinReportPatrolCategoryStatisticsResponse> ExecuteCgibinReportPatrolCategoryStatisticsAsync(this WechatWorkClient client, Models.CgibinReportPatrolCategoryStatisticsRequest 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
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "report", "patrol", "category_statistic")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinReportPatrolCategoryStatisticsResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/report/patrol/get_order_list 接口。</para>
|
||||
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90000/90135/93536 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinReportPatrolGetOrderListResponse> ExecuteCgibinReportPatrolGetOrderListAsync(this WechatWorkClient client, Models.CgibinReportPatrolGetOrderListRequest 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
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "report", "patrol", "get_order_list")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinReportPatrolGetOrderListResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/report/patrol/get_order_info 接口。</para>
|
||||
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90000/90135/93535 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinReportPatrolGetOrderInfoResponse> ExecuteCgibinReportPatrolGetOrderInfoAsync(this WechatWorkClient client, Models.CgibinReportPatrolGetOrderInfoRequest 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
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "report", "patrol", "get_order_info")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinReportPatrolGetOrderInfoResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Resident
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /cgi-bin/report/resident/get_grid_info 接口。</para>
|
||||
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90000/90135/93514 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinReportResidentGetGridInfoResponse> ExecuteCgibinReportResidentGetGridInfoAsync(this WechatWorkClient client, Models.CgibinReportResidentGetGridInfoRequest 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
|
||||
.CreateRequest(HttpMethod.Get, "cgi-bin", "report", "resident", "get_grid_info")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestAsync<Models.CgibinReportResidentGetGridInfoResponse>(flurlReq, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/report/resident/get_corp_status 接口。</para>
|
||||
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90000/90135/93515 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinReportResidentGetCorpStatusResponse> ExecuteCgibinReportResidentGetCorpStatusAsync(this WechatWorkClient client, Models.CgibinReportResidentGetCorpStatusRequest 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
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "report", "resident", "get_corp_status")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinReportResidentGetCorpStatusResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/report/resident/get_user_status 接口。</para>
|
||||
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90000/90135/93516 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinReportResidentGetUserStatusResponse> ExecuteCgibinReportResidentGetUserStatusAsync(this WechatWorkClient client, Models.CgibinReportResidentGetUserStatusRequest 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
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "report", "resident", "get_user_status")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinReportResidentGetUserStatusResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/report/resident/category_statistic 接口。</para>
|
||||
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90000/90135/93517 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinReportResidentCategoryStatisticsResponse> ExecuteCgibinReportResidentCategoryStatisticsAsync(this WechatWorkClient client, Models.CgibinReportResidentCategoryStatisticsRequest 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
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "report", "resident", "category_statistic")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinReportResidentCategoryStatisticsResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/report/resident/get_order_list 接口。</para>
|
||||
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90000/90135/93518 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinReportResidentGetOrderListResponse> ExecuteCgibinReportResidentGetOrderListAsync(this WechatWorkClient client, Models.CgibinReportResidentGetOrderListRequest 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
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "report", "resident", "get_order_list")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinReportResidentGetOrderListResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/report/resident/get_order_info 接口。</para>
|
||||
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90000/90135/93519 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinReportResidentGetOrderInfoResponse> ExecuteCgibinReportResidentGetOrderInfoAsync(this WechatWorkClient client, Models.CgibinReportResidentGetOrderInfoRequest 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
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "report", "resident", "get_order_info")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinReportResidentGetOrderInfoResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -593,8 +593,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
if (request.DepartmentId.HasValue)
|
||||
flurlReq.SetQueryParam("id", request.DepartmentId);
|
||||
if (request.ParentDepartmentId.HasValue)
|
||||
flurlReq.SetQueryParam("id", request.ParentDepartmentId);
|
||||
|
||||
return await client.SendRequestAsync<Models.CgibinSchoolDepartmentListResponse>(flurlReq, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
@@ -6,11 +6,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/externalcontact/groupchat/statistic_group_by_day 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExternalContactGroupChatStatisticGroupByDayRequest : WechatWorkRequest
|
||||
public class CgibinExternalContactGroupChatStatisticsGroupByDayRequest : WechatWorkRequest
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class OwnerFilter : CgibinExternalContactGroupChatStatisticRequest.Types.OwnerFilter
|
||||
public class OwnerFilter : CgibinExternalContactGroupChatStatisticsRequest.Types.OwnerFilter
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/externalcontact/groupchat/statistic_group_by_day 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExternalContactGroupChatStatisticGroupByDayResponse : WechatWorkResponse
|
||||
public class CgibinExternalContactGroupChatStatisticsGroupByDayResponse : WechatWorkResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
@@ -14,7 +14,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Statistic : CgibinExternalContactGroupChatStatisticResponse.Types.Data.Types.Statistic
|
||||
public class Statistics : CgibinExternalContactGroupChatStatisticsResponse.Types.Data.Types.Statistics
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -31,7 +31,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("data")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("data")]
|
||||
public Types.Statistic Statistic { get; set; } = default!;
|
||||
public Types.Statistics Statistics { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/externalcontact/groupchat/statistic 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExternalContactGroupChatStatisticRequest : WechatWorkRequest
|
||||
public class CgibinExternalContactGroupChatStatisticsRequest : WechatWorkRequest
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
@@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/externalcontact/groupchat/statistic 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExternalContactGroupChatStatisticResponse : WechatWorkResponse
|
||||
public class CgibinExternalContactGroupChatStatisticsResponse : WechatWorkResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
@@ -14,7 +14,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Statistic
|
||||
public class Statistics
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置新增客户群数量。
|
||||
@@ -79,7 +79,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("data")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("data")]
|
||||
public Types.Statistic Statistic { get; set; } = default!;
|
||||
public Types.Statistics Statistics { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/grid/add 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportGridAddRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置网格名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("grid_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("grid_name")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置上级网格 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("grid_parent_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("grid_parent_id")]
|
||||
public string? ParentGridId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置管理员 UserId 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("grid_admin")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("grid_admin")]
|
||||
public IList<string> AdministratorUserIdList { get; set; } = new List<string>();
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置网格成员 UserId 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("grid_member")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("grid_member")]
|
||||
public IList<string>? MemberUserIdList { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/grid/add 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportGridAddResponse : WechatWorkResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置网格 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("grid_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("grid_id")]
|
||||
public string GridId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置无效的 UserId 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("invalid_userids")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("invalid_userids")]
|
||||
public string[]? InvalidUserIdList { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/grid/delete 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportGridDeleteRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置网格 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("grid_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("grid_id")]
|
||||
public string GridId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/grid/delete 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportGridDeleteResponse : WechatWorkResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/grid/get_user_grid_info 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportGridGetUserGridInfoRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置指定用户 UserId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userid")]
|
||||
public string UserId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/grid/get_user_grid_info 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportGridGetUserGridInfoResponse : WechatWorkResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Grid
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置网格 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("grid_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("grid_id")]
|
||||
public string GridId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置网格名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("grid_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("grid_name")]
|
||||
public string Name { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置管理的网格列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("manage_grids")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("manage_grids")]
|
||||
public Types.Grid[] ManagedGridList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置加入的网格列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("joined_grids")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("joined_grids")]
|
||||
public Types.Grid[] JoinedGridList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/grid/list 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportGridListRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置指定上级网格 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("grid_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("grid_id")]
|
||||
public string? ParentGridId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/grid/list 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportGridListResponse : WechatWorkResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Grid
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置网格 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("grid_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("grid_id")]
|
||||
public string GridId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置网格名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("grid_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("grid_name")]
|
||||
public string Name { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置上级网格 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("grid_parent_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("grid_parent_id")]
|
||||
public string? ParentGridId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置管理员 UserId 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("grid_admin")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("grid_admin")]
|
||||
public string[] AdministratorUserIdList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置网格成员 UserId 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("grid_member")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("grid_member")]
|
||||
public string[] MemberUserIdList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置网格列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("grid_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("grid_list")]
|
||||
public Types.Grid[] GridList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/grid/update 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportGridUpdateRequest : CgibinReportGridAddRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置网格 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("grid_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("grid_id")]
|
||||
public string GridId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/grid/update 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportGridUpdateResponse : WechatWorkResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置无效的 UserId 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("invalid_userids")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("invalid_userids")]
|
||||
public string[]? InvalidUserIdList { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/grid/add_cata 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportGridAddCategoryRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置分类名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("category_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("category_name")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分类层级。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("level")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("level")]
|
||||
public int Level { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置上级分类 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("parent_category_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("parent_category_id")]
|
||||
public string? ParentCategoryId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/grid/add_cata 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportGridAddCategoryResponse : WechatWorkResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置分类 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("category_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("category_id")]
|
||||
public string CategoryId { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/grid/delete_cata 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportGridDeleteCategoryRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置分类 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("category_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("category_id")]
|
||||
public string CategoryId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/grid/delete_cata 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportGridDeleteCategoryResponse : WechatWorkResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/grid/list_cata 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportGridListCategoryRequest : WechatWorkRequest
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/grid/list_cata 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportGridListCategoryResponse : WechatWorkResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Category
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置分类 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cata_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cata_id")]
|
||||
public string CategoryId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分类名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cata_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cata_name")]
|
||||
public string Name { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分类层级。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("level")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("level")]
|
||||
public int Level { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置上级分类 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("parent_cata_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("parent_cata_id")]
|
||||
public string? ParentCategoryId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分类列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cata_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cata_list")]
|
||||
public Types.Category[] CategoryList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/grid/update_cata 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportGridUpdateCategoryRequest : CgibinReportGridAddCategoryRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置分类 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("category_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("category_id")]
|
||||
public string CatrgoryId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/grid/update_cata 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportGridUpdateCategoryResponse : WechatWorkResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/patrol/category_statistic 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportPatrolCategoryStatisticsRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置分类 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("category_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("category_id")]
|
||||
public string CategoryId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/patrol/category_statistic 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportPatrolCategoryStatisticsResponse : WechatWorkResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Data
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置分类 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("category_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("category_id")]
|
||||
public string CategoryId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分类名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("category_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("category_name")]
|
||||
public string CategoryName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分类层级。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("category_level")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("category_level")]
|
||||
public int CategoryLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分类类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("category_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("category_type")]
|
||||
public int CategoryType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置累计上报数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total_case")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total_case")]
|
||||
public int TotalAddedCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置累计办结数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total_solved")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total_solved")]
|
||||
public int TotalSolvedCount { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置数据列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("dashboard_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("dashboard_list")]
|
||||
public Types.Data[] DataList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/patrol/get_corp_status 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportPatrolGetCorpStatusRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置网格 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("grid_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("grid_id")]
|
||||
public string GridId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/patrol/get_corp_status 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportPatrolGetCorpStatusResponse : WechatWorkResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置待分配数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("to_be_assigned")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("to_be_assigned")]
|
||||
public int ToBeAssignedCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置办理中数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("processing")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("processing")]
|
||||
public int ProcessingCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置今日上报数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("added_today")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("added_today")]
|
||||
public int TodayAddedCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置今日办结数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("solved_today")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("solved_today")]
|
||||
public int TodaySolvedCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置累计上报数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total_case")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total_case")]
|
||||
public int TotalAddedCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置累计办结数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total_solved")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total_solved")]
|
||||
public int TotalSolvedCount { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /cgi-bin/report/patrol/get_grid_info 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportPatrolGetGridInfoRequest : WechatWorkRequest
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /cgi-bin/report/patrol/get_grid_info 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportPatrolGetGridInfoResponse : WechatWorkResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Grid
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置网格 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("grid_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("grid_id")]
|
||||
public string GridId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置网格名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("grid_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("grid_name")]
|
||||
public string Name { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置管理员 UserId 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("grid_admin")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("grid_admin")]
|
||||
public string[] AdministratorUserIdList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置网格列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("grid_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("grid_list")]
|
||||
public Types.Grid[] GridList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/patrol/get_order_info 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportPatrolGetOrderInfoRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置工单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
|
||||
public string WorkOrderId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/patrol/get_order_info 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportPatrolGetOrderInfoResponse : WechatWorkResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class WorkOrder : CgibinReportPatrolGetOrderListResponse.Types.WorkOrder
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置工单信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_info")]
|
||||
public Types.WorkOrder WorkOrder { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/patrol/get_order_list 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportPatrolGetOrderListRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置指定时间后创建的时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("begin_create_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("begin_create_time")]
|
||||
public long? CreateBeginTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置指定时间后修改的时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("begin_modify_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("begin_modify_time")]
|
||||
public long? ModifyBeginTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置翻页标记。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cursor")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cursor")]
|
||||
public string? NextCursor { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页每页数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("limit")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("limit")]
|
||||
public int? Limit { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,201 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/patrol/get_order_list 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportPatrolGetOrderListResponse : WechatWorkResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class WorkOrder
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Location
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置位置名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||||
public string Name { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置详细地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("address")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("address")]
|
||||
public string Address { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置经度。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("longitude")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("longitude")]
|
||||
public double Longitude { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置纬度。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("latitude")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("latitude")]
|
||||
public double Latitude { get; set; }
|
||||
}
|
||||
|
||||
public class ProcessRecord
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置流程类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("process_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("process_type")]
|
||||
public int Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置流程描述。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("process_desc")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("process_desc")]
|
||||
public string Description { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置流程状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置图片 URL 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("image_urls")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("image_urls")]
|
||||
public string[]? ImageUrlList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置视频 MediaId 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("video_media_ids")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("video_media_ids")]
|
||||
public string[]? VideoMediaIdList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置办结人用户 UserId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("solve_userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("solve_userid")]
|
||||
public string? SolverUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置办结时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("solved_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("solved_time")]
|
||||
public long? SolvedTimestamp { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置工单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
|
||||
public string WorkOrderId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置事件描述。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("desc")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("desc")]
|
||||
public string Description { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置紧急类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("urge_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("urge_type")]
|
||||
public int UrgencyType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分类名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("case_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("case_name")]
|
||||
public string CategoryName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置网格 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("grid_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("grid_id")]
|
||||
public string GridId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置网格名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("grid_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("grid_name")]
|
||||
public string GridName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置创建时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("create_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("create_time")]
|
||||
public long CreateTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置图片 URL 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("image_urls")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("image_urls")]
|
||||
public string[]? ImageUrlList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置视频 MediaId 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("video_media_ids")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("video_media_ids")]
|
||||
public string[]? VideoMediaIdList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置位置信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("location")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("location")]
|
||||
public Types.Location? Location { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置处理人用户 UserId 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("processor_userids")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("processor_userids")]
|
||||
public string[]? ProcessorUserIdList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置处理记录列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("process_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("process_list")]
|
||||
public Types.ProcessRecord[] ProcessRecordList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置工单列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_list")]
|
||||
public Types.WorkOrder[] WorkOrderList { 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,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/patrol/get_user_status 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportPatrolGetUserStatusRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置用户 UserId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userid")]
|
||||
public string UserId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/patrol/get_user_status 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportPatrolGetUserStatusResponse : WechatWorkResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置办理中数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("processing")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("processing")]
|
||||
public int ProcessingCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置今日上报数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("added_today")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("added_today")]
|
||||
public int TodayAddedCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置今日办结数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("solved_today")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("solved_today")]
|
||||
public int TodaySolvedCount { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/resident/category_statistic 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportResidentCategoryStatisticsRequest : CgibinReportPatrolCategoryStatisticsRequest
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/resident/category_statistic 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportResidentCategoryStatisticsResponse : WechatWorkResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Data : CgibinReportPatrolCategoryStatisticsResponse.Types.Data
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置数据列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("dashboard_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("dashboard_list")]
|
||||
public Types.Data[] DataList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/resident/get_corp_status 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportResidentGetCorpStatusRequest : CgibinReportPatrolGetCorpStatusRequest
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/resident/get_corp_status 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportResidentGetCorpStatusResponse : WechatWorkResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置待受理数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pending")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pending")]
|
||||
public int PendingCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置办理中数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("processing")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("processing")]
|
||||
public int ProcessingCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置今日上报数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("added_today")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("added_today")]
|
||||
public int TodayAddedCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置今日办结数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("solved_today")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("solved_today")]
|
||||
public int TodaySolvedCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置累计上报数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total_case")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total_case")]
|
||||
public int TotalAddedCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置累计受理数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total_accepted")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total_accepted")]
|
||||
public int TotalAcceptedCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置累计办结数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total_solved")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total_solved")]
|
||||
public int TotalSolvedCount { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /cgi-bin/report/resident/get_grid_info 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportResidentGetGridInfoRequest : WechatWorkRequest
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /cgi-bin/report/resident/get_grid_info 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportResidentGetGridInfoResponse : WechatWorkResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Grid : CgibinReportPatrolGetGridInfoResponse.Types.Grid
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置网格列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("grid_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("grid_list")]
|
||||
public Types.Grid[] GridList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/resident/get_order_info 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportResidentGetOrderInfoRequest : CgibinReportPatrolGetOrderInfoRequest
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/resident/get_order_info 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportResidentGetOrderInfoResponse : WechatWorkResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class WorkOrder : CgibinReportResidentGetOrderListResponse.Types.WorkOrder
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置工单信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_info")]
|
||||
public Types.WorkOrder WorkOrder { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/resident/get_order_list 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportResidentGetOrderListRequest : CgibinReportPatrolGetOrderListRequest
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/resident/get_order_list 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportResidentGetOrderListResponse : WechatWorkResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class WorkOrder : CgibinReportPatrolGetOrderListResponse.Types.WorkOrder
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置上报人名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("reporter_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("reporter_name")]
|
||||
public string ReporterName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置上报人手机号码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("reporter_mobile")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("reporter_mobile")]
|
||||
public string ReporterMobileNumber { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置上报人 UnionId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("unionid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("unionid")]
|
||||
public string? ReporterUnionId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置工单列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_list")]
|
||||
public Types.WorkOrder[] WorkOrderList { 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,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/resident/get_user_status 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportResidentGetUserStatusRequest : CgibinReportPatrolGetUserStatusRequest
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/report/resident/get_user_status 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinReportResidentGetUserStatusResponse : WechatWorkResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置待受理数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pending")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pending")]
|
||||
public int PendingCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置办理中数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("processing")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("processing")]
|
||||
public int ProcessingCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置今日上报数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("added_today")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("added_today")]
|
||||
public int TodayAddedCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置今日办结数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("solved_today")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("solved_today")]
|
||||
public int TodaySolvedCount { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -9,10 +9,10 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
public class CgibinSchoolDepartmentListRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置指定部门 ID。
|
||||
/// 获取或设置指定上级部门 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public int? DepartmentId { get; set; }
|
||||
public int? ParentDepartmentId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user