mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-12-30 02:14:44 +08:00
feat(work): 封装部分企业微信接口
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /cgi-bin/get_jsapi_ticket 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinGetJsapiTicketRequest : WechatWorkRequest
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /cgi-bin/get_jsapi_ticket 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinGetJsapiTicketResponse : WechatWorkResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置票据。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ticket")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ticket")]
|
||||
public string Ticket { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置票据有效期(单位:秒)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("expires_in")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("expires_in")]
|
||||
public int ExpiresIn { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -16,7 +16,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
public string AccessToken { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置凭证有效时间(单位:秒)。
|
||||
/// 获取或设置凭证有效期(单位:秒)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("expires_in")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("expires_in")]
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /cgi-bin/ticket/get 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinTicketGetRequest : CgibinGetJsapiTicketRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>获取或设置票据类型。</para>
|
||||
/// <para>默认值:agent_config</para>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string Type { get; set; } = "agent_config";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /cgi-bin/ticket/get 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinTicketGetResponse : CgibinGetJsapiTicketResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -38,7 +38,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userlist")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userlist")]
|
||||
public IList<string> MemberUserIdList { get; set; } = default!;
|
||||
public string[] MemberUserIdList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -173,6 +173,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ThirdNo")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ThirdNo")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumberTypedStringConverter))]
|
||||
public string ThirdPartyApprovalNumber { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
public string AccessToken { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置下级企业 AccessToken 有效时间(单位:秒)。
|
||||
/// 获取或设置下级企业 AccessToken 有效期(单位:秒)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("expires_in")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("expires_in")]
|
||||
|
||||
@@ -13,6 +13,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("agentid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("agentid")]
|
||||
public int? AgentId { get; set; }
|
||||
public int? ParentAgentId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -169,7 +169,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("group_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("group_name")]
|
||||
public string? GroupName { get; set; }
|
||||
public string? TagGroupName { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -191,14 +191,14 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
public bool? IsTemp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置临时会话二维码有效时间(单位:秒)。
|
||||
/// 获取或设置临时会话二维码有效期(单位:秒)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("expires_in")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("expires_in")]
|
||||
public int? TempQrcodeExpiresIn { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置临时会话有效时间有效时间(单位:秒)。
|
||||
/// 获取或设置临时会话有效时间有效期(单位:秒)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("chat_expires_in")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("chat_expires_in")]
|
||||
|
||||
@@ -209,14 +209,14 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
public bool IsTemp { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置临时会话二维码有效时间(单位:秒)。
|
||||
/// 获取或设置临时会话二维码有效期(单位:秒)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("expires_in")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("expires_in")]
|
||||
public int? TempQrcodeExpiresIn { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置临时会话有效时间有效时间(单位:秒)。
|
||||
/// 获取或设置临时会话有效时间有效期(单位:秒)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("chat_expires_in")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("chat_expires_in")]
|
||||
|
||||
@@ -72,14 +72,14 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
public bool? IsTemp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置临时会话二维码有效时间(单位:秒)。
|
||||
/// 获取或设置临时会话二维码有效期(单位:秒)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("expires_in")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("expires_in")]
|
||||
public int? TempQrcodeExpiresIn { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置临时会话有效时间有效时间(单位:秒)。
|
||||
/// 获取或设置临时会话有效时间有效期(单位:秒)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("chat_expires_in")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("chat_expires_in")]
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||||
public string Name { get; set; } = default!;
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置次序值。
|
||||
@@ -33,7 +33,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("group_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("group_id")]
|
||||
public string? GroupId { get; set; }
|
||||
public string? TagGroupId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置企业标签分组名称。
|
||||
|
||||
@@ -20,6 +20,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("tag_group")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("tag_group")]
|
||||
public Types.TagGroup Group { get; set; } = default!;
|
||||
public Types.TagGroup TagGroup { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,6 +20,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("group_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("group_id")]
|
||||
public IList<string>? GroupIdList { get; set; }
|
||||
public IList<string>? TagGroupIdList { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("group_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("group_id")]
|
||||
public string GroupId { get; set; } = default!;
|
||||
public string TagGroupId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置企业标签分组名称。
|
||||
@@ -102,6 +102,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("tag_group")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("tag_group")]
|
||||
public Types.TagGroup[] GroupList { get; set; } = default!;
|
||||
public Types.TagGroup[] TagGroupList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
public Types.Invitor? Invitor { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置入群场景。
|
||||
/// 获取或设置入群场景值。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("join_scene")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("join_scene")]
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/externalpay/get_bill_list 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExternalPayGetBillListRequest : WechatWorkRequest
|
||||
{
|
||||
/// <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("payee_userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("payee_userid")]
|
||||
public string? PayeeUserId { 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,218 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/externalpay/get_bill_list 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExternalPayGetBillListResponse : WechatWorkResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Bill
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Commodity
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商品描述。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("description")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("description")]
|
||||
public string Description { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("amount")]
|
||||
public int? Count { get; set; }
|
||||
}
|
||||
|
||||
public class Refund
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商户退款单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("out_refund_no")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_refund_no")]
|
||||
public string OutRefundNumber { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款发起人成员账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("refund_userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("refund_userid")]
|
||||
public string RefundUserId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款备注。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("refund_comment")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("refund_comment")]
|
||||
public string RefundComment { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款发起时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("refund_reqtime")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("refund_reqtime")]
|
||||
public long RefundRequestTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("refund_status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("refund_status")]
|
||||
public int RefundStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("refund_fee")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("refund_fee")]
|
||||
public int RefundFee { get; set; }
|
||||
}
|
||||
|
||||
public class Contact
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置姓名。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||||
public string? Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置电话号码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("phone")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("phone")]
|
||||
public string? PhoneNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("address")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("address")]
|
||||
public string? Address { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信支付商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mch_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mch_id")]
|
||||
public string MerchantId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商户单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("out_trade_no")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_trade_no")]
|
||||
public string OutTradeNumber { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置交易单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("transaction_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("transaction_id")]
|
||||
public string TransactionId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置交易状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("trade_state")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("trade_state")]
|
||||
public int TradeState { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置付款人外部联系人账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("external_userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("external_userid")]
|
||||
public string PayerExternalUserId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置收款人成员账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("payee_userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("payee_userid")]
|
||||
public string PayeeUserId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置总金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total_fee")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total_fee")]
|
||||
public int TotalFee { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置已退款金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total_refund_fee")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total_refund_fee")]
|
||||
public int RefundFee { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置收款方式。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("payment_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("payment_type")]
|
||||
public int PaymentType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置交易时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pay_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pay_time")]
|
||||
public long PayTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置备注。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("remark")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("remark")]
|
||||
public string Remark { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置联系人信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("payer_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("payer_info")]
|
||||
public Types.Contact? Contact { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("commodity_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("commodity_list")]
|
||||
public Types.Commodity[]? CommodityList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("refund_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("refund_list")]
|
||||
public Types.Refund[]? RefundList { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置交易单列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("bill_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("bill_list")]
|
||||
public Types.Bill[] BillList { 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,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/externalpay/addmerchant 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExternalPayAddMerchantRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置微信支付商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mch_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mch_id")]
|
||||
public string MerchantId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信支付商户号全称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("merchant_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("merchant_name")]
|
||||
public string MerchantName { 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/externalpay/addmerchant 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExternalPayAddMerchantResponse : WechatWorkResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/externalpay/delmerchant 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExternalPayDeleteMerchantRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置微信支付商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mch_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mch_id")]
|
||||
public string MerchantId { 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/externalpay/delmerchant 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExternalPayDeleteMerchantResponse : WechatWorkResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/externalpay/getmerchant 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExternalPayGetMerchantRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置微信支付商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mch_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mch_id")]
|
||||
public string MerchantId { 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/externalpay/getmerchant 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExternalPayGetMerchantResponse : WechatWorkResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class UseScope
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置成员账号列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user")]
|
||||
public string[]? UserIdList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置部门 ID 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("partyid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("partyid")]
|
||||
public int[]? DepartmentIdList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置标签 ID 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("tagid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("tagid")]
|
||||
public int[]? TagIdList { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置绑定状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("bind_status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("bind_status")]
|
||||
public int BindStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信支付商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mch_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mch_id")]
|
||||
public string MerchantId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信支付商户号全称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("merchant_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("merchant_name")]
|
||||
public string MerchantName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置使用范围信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("allow_use_scope")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("allow_use_scope")]
|
||||
public Types.UseScope? UseScope { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/externalpay/set_mch_use_scope 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExternalPaySetMerchantUseScopeRequest : WechatWorkRequest
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class UseScope
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置成员账号列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user")]
|
||||
public IList<string>? UserIdList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置部门 ID 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("partyid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("partyid")]
|
||||
public IList<int>? DepartmentIdList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置标签 ID 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("tagid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("tagid")]
|
||||
public IList<int>? TagIdList { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信支付商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mch_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mch_id")]
|
||||
public string MerchantId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置使用范围信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("allow_use_scope")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("allow_use_scope")]
|
||||
public Types.UseScope UseScope { get; set; } = new Types.UseScope();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/externalpay/set_mch_use_scope 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExternalPaySetMerchantUseScopeResponse : WechatWorkResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -174,28 +174,28 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("members")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("members")]
|
||||
public IList<ContactControlValueForUser>? ContactMembers { get; set; }
|
||||
public ContactControlValueForUser[]? ContactMembers { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 Contact 控件部门值。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("departments")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("departments")]
|
||||
public IList<ContactControlValueForDepartment>? ContactDepartments { get; set; }
|
||||
public ContactControlValueForDepartment[]? ContactDepartments { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 File 控件值。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("files")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("files")]
|
||||
public IList<FileControlValue>? Files { get; set; }
|
||||
public FileControlValue[]? Files { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 Table 控件值。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("children")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("children")]
|
||||
public IList<TableControlValue>? TableChildren { get; set; }
|
||||
public TableControlValue[]? TableChildren { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 Attendance 控件值。
|
||||
@@ -223,7 +223,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("related_approval")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("related_approval")]
|
||||
public IList<RelatedApprovalControlValue>? RelatedApprovals { get; set; }
|
||||
public RelatedApprovalControlValue[]? RelatedApprovals { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 Formula 控件值。
|
||||
@@ -753,14 +753,14 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sp_record")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sp_record")]
|
||||
public IList<Types.Record> RecordList { get; set; } = default!;
|
||||
public Types.Record[] RecordList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置评论列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("comments")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("comments")]
|
||||
public IList<Types.Comment> CommentList { get; set; } = default!;
|
||||
public Types.Comment[] CommentList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /cgi-bin/service/batch/getresult 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinServiceBatchGetResultRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置异步任务 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string JobId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /cgi-bin/service/batch/getresult 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinServiceBatchGetResultResponse : WechatWorkResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Result
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class ContactIdTranslateResult
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("url")]
|
||||
public string Url { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置通讯录 ID 转译任务结果。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("contact_id_translate")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("contact_id_translate")]
|
||||
public Types.ContactIdTranslateResult? ContactIdTranslateResult { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置任务类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("type")]
|
||||
public string Type { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置任务状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置处理结果。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("result")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("result")]
|
||||
public Types.Result Result { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -16,7 +16,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
public string AccessToken { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置授权方凭证有效时间(单位:秒)。
|
||||
/// 获取或设置授权方凭证有效期(单位:秒)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("expires_in")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("expires_in")]
|
||||
|
||||
@@ -99,7 +99,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
public string AccessToken { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置授权方凭证有效时间(单位:秒)。
|
||||
/// 获取或设置授权方凭证有效期(单位:秒)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("expires_in")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("expires_in")]
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
public string PreAuthCode { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置预授权码有效时间(单位:秒)。
|
||||
/// 获取或设置预授权码有效期(单位:秒)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("expires_in")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("expires_in")]
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
public string ProviderAccessToken { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置服务商凭证有效时间(单位:秒)。
|
||||
/// 获取或设置服务商凭证有效期(单位:秒)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("expires_in")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("expires_in")]
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
public string SuiteAccessToken { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置第三方应用凭证有效时间(单位:秒)。
|
||||
/// 获取或设置第三方应用凭证有效期(单位:秒)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("expires_in")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("expires_in")]
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
public string? UserTicket { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置成员票据有效时间(单位:秒)。
|
||||
/// 获取或设置成员票据有效期(单位:秒)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("expires_in")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("expires_in")]
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/service/contact/id_translate 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinServiceContactIdTranslateRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置授权方 CorpId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("auth_corpid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("auth_corpid")]
|
||||
public string AuthorizerCorpId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置需要转译的文件 MediaId 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("media_id_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("media_id_list")]
|
||||
public IList<string> MediaIdList { get; set; } = new List<string>();
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置转译后打包的文件名(不带后缀名)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("output_file_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("output_file_name")]
|
||||
public string? OutputFileName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置转译后打包的文件格式。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("output_file_format")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("output_file_format")]
|
||||
public string? OutputFileFormat { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/service/contact/id_translate 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinServiceContactIdTranslateResponse : WechatWorkResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置异步任务 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("jobid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("jobid")]
|
||||
public string JobId { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/service/contact/sort 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinServiceContactSortRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置授权方 CorpId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("auth_corpid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("auth_corpid")]
|
||||
public string AuthorizerCorpId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置排序方式。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sort_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sort_type")]
|
||||
public int SortType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置要排序的成员账号列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("useridlist")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("useridlist")]
|
||||
public IList<string> UserIdList { get; set; } = new List<string>();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/service/contact/sort 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinServiceContactSortResponse : WechatWorkResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置排序后的成员账号列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("useridlist")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("useridlist")]
|
||||
public string[] UserIdList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/service/media/upload 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinServiceMediaUploadRequest : CgibinMediaUploadRequest
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/service/media/upload 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinServiceMediaUploadResponse : CgibinMediaUploadResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -16,7 +16,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
public string RegisterCode { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置注册码有效时间(单位:秒)。
|
||||
/// 获取或设置注册码有效期(单位:秒)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("expires_in")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("expires_in")]
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
public string AccessToken { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置通讯录迁移凭证有效时间(单位:秒)。
|
||||
/// 获取或设置通讯录迁移凭证有效期(单位:秒)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("expires_in")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("expires_in")]
|
||||
|
||||
Reference in New Issue
Block a user