mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-24 13:03:43 +08:00
feat(wxapi): 随官方更新小程序 URL Scheme & URL Link 相关接口模型
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/query_urllink 接口的请求。</para>
|
||||
@@ -10,6 +10,13 @@
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("url_link")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("url_link")]
|
||||
public string UrlLink { get; set; } = string.Empty;
|
||||
public string? UrlLink { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置查询类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("query_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("query_type")]
|
||||
public int? QueryType { get; set; }
|
||||
}
|
||||
}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/query_urllink 接口的响应。</para>
|
||||
@@ -103,18 +103,11 @@
|
||||
public class Quota
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置长期有效的已生成次数。
|
||||
/// 获取或设置单天剩余访问次数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("long_time_used")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("long_time_used")]
|
||||
public int LongTimeUsed { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置长期有效的次数上限。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("long_time_limit")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("long_time_limit")]
|
||||
public int LongTimeLimit { get; set; }
|
||||
[Newtonsoft.Json.JsonProperty("remain_visit_quota")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("remain_visit_quota")]
|
||||
public int RemainVisitQuota { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -128,8 +121,8 @@
|
||||
/// <summary>
|
||||
/// 获取或设置配额信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("url_link_quota")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("url_link_quota")]
|
||||
[Newtonsoft.Json.JsonProperty("quota_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("quota_info")]
|
||||
public Types.Quota Quota { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/queryscheme 接口的请求。</para>
|
||||
@@ -10,6 +10,13 @@
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("scheme")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("scheme")]
|
||||
public string UrlScheme { get; set; } = string.Empty;
|
||||
public string? UrlScheme { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置查询类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("query_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("query_type")]
|
||||
public int? QueryType { get; set; }
|
||||
}
|
||||
}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/queryscheme 接口的响应。</para>
|
||||
@@ -55,18 +55,11 @@
|
||||
public class Quota
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置长期有效的已生成次数。
|
||||
/// 获取或设置单天剩余访问次数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("long_time_used")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("long_time_used")]
|
||||
public int LongTimeUsed { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置长期有效的次数上限。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("long_time_limit")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("long_time_limit")]
|
||||
public int LongTimeLimit { get; set; }
|
||||
[Newtonsoft.Json.JsonProperty("remain_visit_quota")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("remain_visit_quota")]
|
||||
public int RemainVisitQuota { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -80,8 +73,8 @@
|
||||
/// <summary>
|
||||
/// 获取或设置配额信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("scheme_quota")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("scheme_quota")]
|
||||
[Newtonsoft.Json.JsonProperty("quota_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("quota_info")]
|
||||
public Types.Quota Quota { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user