mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-15 23:13:32 +08:00
feat(wxapi): 随官方更新扫描二维码打开小程序的相关接口模型
This commit is contained in:
parent
5c5056a905
commit
d812aa0b2a
@ -176,6 +176,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/wxopen/qrcodejumpadd 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/offiaccount/qrcode/qrcodejumpadd.html </para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/qrcode/qrcodejumpadd.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
|
@ -20,28 +20,35 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("permit_sub_rule")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("permit_sub_rule")]
|
||||
public int PermitSubRule { get; set; }
|
||||
public int? PermitSubRule { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置发布状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("state")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("state")]
|
||||
public int State { get; set; }
|
||||
public int? State { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string? MiniProgramAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序页面路径。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("path")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("path")]
|
||||
public string PagePath { get; set; } = string.Empty;
|
||||
public string MiniProgramPagePath { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置测试范围。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("open_version")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("open_version")]
|
||||
public int OpenVersion { get; set; }
|
||||
public int? OpenVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置测试链接列表。
|
||||
|
@ -14,5 +14,12 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[Newtonsoft.Json.JsonProperty("prefix")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("prefix")]
|
||||
public string Prefix { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string? MiniProgramAppId { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -8,5 +8,39 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
/// </summary>
|
||||
public class CgibinWxopenQrcodeJumpGetRequest : WechatApiRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string? MiniProgramAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置查询方式。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("get_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("get_type")]
|
||||
public int? Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置匹配前缀列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("prefix_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("prefix_list")]
|
||||
public IList<string>? PrefixList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页页数(从 1 开始)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("page_num")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("page_num")]
|
||||
public int? Page { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页每页数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("page_size")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("page_size")]
|
||||
public int? Limit { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("permit_sub_rule")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("permit_sub_rule")]
|
||||
public int PermitSubRule { get; set; }
|
||||
public int? PermitSubRule { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置发布状态。
|
||||
@ -38,21 +38,21 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("path")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("path")]
|
||||
public string PagePath { get; set; } = default!;
|
||||
public string MiniProgramPagePath { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置测试范围。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("open_version")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("open_version")]
|
||||
public int OpenVersion { get; set; }
|
||||
public int? OpenVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置测试链接列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("debug_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("debug_url")]
|
||||
public string[] DebugUrlList { get; set; } = default!;
|
||||
public string[]? DebugUrlList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
@ -61,7 +61,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("list_size")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("list_size")]
|
||||
public int Total { get; set; }
|
||||
public int TotalCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置二维码规则列表。
|
||||
@ -84,6 +84,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("qrcodejump_open")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
|
||||
public bool IsQrcodeJumpStore { get; set; }
|
||||
public bool IsQrcodeJumpOpen { get; set; }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user