mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-19 01:58:14 +08:00
feat(wxapi): 重命名部分接口模型
This commit is contained in:
@@ -51,7 +51,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
[Newtonsoft.Json.JsonProperty("qrcode_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("qrcode_info")]
|
||||
[System.Xml.Serialization.XmlElement("qrcode_info", IsNullable = true)]
|
||||
public string? QrcodeExt { get; set; }
|
||||
public string? QrcodeExtra { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -23,7 +23,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("extra_info_json")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("extra_info_json")]
|
||||
public string? JsonExt { get; set; }
|
||||
public string? JsonExtra { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序 AppId。
|
||||
|
@@ -182,8 +182,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
|
||||
if (string.IsNullOrEmpty(request.AppId))
|
||||
request.AppId = client.AppId;
|
||||
|
||||
if (request.CardExt != null && string.IsNullOrEmpty(request.CardExt.Nonce))
|
||||
request.CardExt.Nonce = Guid.NewGuid().ToString("N");
|
||||
if (request.CardExtra != null && string.IsNullOrEmpty(request.CardExtra.Nonce))
|
||||
request.CardExtra.Nonce = Guid.NewGuid().ToString("N");
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "card", "invoice", "insert")
|
||||
|
@@ -10,7 +10,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class CardExt
|
||||
public class CardExtra
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
@@ -247,6 +247,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("card_ext")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("card_ext")]
|
||||
public Types.CardExt CardExt { get; set; } = new Types.CardExt();
|
||||
public Types.CardExtra CardExtra { get; set; } = new Types.CardExtra();
|
||||
}
|
||||
}
|
||||
|
@@ -14,7 +14,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class InvoiceItem : CardInvoiceInsertRequest.Types.CardExt.Types.InvoiceCard.Types.Invoice.Types.InvoiceItem
|
||||
public class InvoiceItem : CardInvoiceInsertRequest.Types.CardExtra.Types.InvoiceCard.Types.Invoice.Types.InvoiceItem
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@@ -149,7 +149,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("detail_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("detail_list")]
|
||||
public Types.GoodsDetail[]? GoodsDetailList { get; set; }
|
||||
public IList<Types.GoodsDetail>? GoodsDetailList { get; set; }
|
||||
}
|
||||
|
||||
public class Shop
|
||||
|
@@ -27,6 +27,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("qrcode_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("qrcode_info")]
|
||||
public string? QrcodeExt { get; set; }
|
||||
public string? QrcodeExtra { get; set; }
|
||||
}
|
||||
}
|
||||
|
@@ -104,7 +104,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("card_ext")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("card_ext")]
|
||||
public string? CardExt { get; set; }
|
||||
public string? CardExtra { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -168,7 +168,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public string ProductCode { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public class AttributeExt
|
||||
public class AttributeExtra
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
@@ -312,7 +312,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("attrext")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("attrext")]
|
||||
public Types.AttributeExt? AttributeExt { get; set; }
|
||||
public Types.AttributeExtra? AttributeExtra { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置运费信息。
|
||||
|
@@ -101,7 +101,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
}
|
||||
|
||||
public class AttributeExt : MerchantCreateRequest.Types.AttributeExt
|
||||
public class AttributeExtra : MerchantCreateRequest.Types.AttributeExtra
|
||||
{
|
||||
}
|
||||
|
||||
@@ -163,7 +163,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("attrext")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("attrext")]
|
||||
public Types.AttributeExt AttributeExt { get; set; } = default!;
|
||||
public Types.AttributeExtra AttributeExtra { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置运费信息。
|
||||
|
@@ -18,7 +18,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
}
|
||||
|
||||
public class AttributeExt : MerchantCreateRequest.Types.AttributeExt
|
||||
public class AttributeExtra : MerchantCreateRequest.Types.AttributeExtra
|
||||
{
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("attrext")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("attrext")]
|
||||
public Types.AttributeExt? AttributeExt { get; set; }
|
||||
public Types.AttributeExtra? AttributeExtra { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置运费信息。
|
||||
|
@@ -10,7 +10,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class CardExt
|
||||
public class CardExtra
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
@@ -108,6 +108,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("card_ext")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("card_ext")]
|
||||
public Types.CardExt CardExt { get; set; } = new Types.CardExt();
|
||||
public Types.CardExtra CardExtra { get; set; } = new Types.CardExtra();
|
||||
}
|
||||
}
|
||||
|
@@ -25,7 +25,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("time_cost")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("time_cost")]
|
||||
public int TimeCost { get; set; }
|
||||
public int CostTime { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,14 +41,14 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("aver_time_cost")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("aver_time_cost")]
|
||||
public int AverageTimeCost { get; set; }
|
||||
public int AverageCostTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置请求最大耗时(单位:毫秒)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("max_time_cost")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("max_time_cost")]
|
||||
public int MaxTimeCost { get; set; }
|
||||
public int MaxCostTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置共请求了多少多次。
|
||||
@@ -120,14 +120,14 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("aver_time_cost")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("aver_time_cost")]
|
||||
public int AverageTimeCost { get; set; }
|
||||
public int AverageCostTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置打开页面的最大耗时(单位:毫秒)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("max_time_cost")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("max_time_cost")]
|
||||
public int MaxTimeCost { get; set; }
|
||||
public int MaxCostTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置共打开了多少次该页面。
|
||||
|
@@ -55,7 +55,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("room_ext_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("room_ext_info")]
|
||||
public string? RoomExt { get; set; }
|
||||
public string? RoomExtra { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否需要在创建房间时同时生成一个随机的游戏种子。
|
||||
|
@@ -70,7 +70,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("member_ext_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("member_ext_info")]
|
||||
public string MemberExt { get; set; } = default!;
|
||||
public string MemberExtra { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -142,7 +142,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("room_ext_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("room_ext_info")]
|
||||
public string RoomExt { get; set; } = default!;
|
||||
public string RoomExtra { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置游戏随机种子。
|
||||
|
@@ -69,7 +69,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("extended_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("extended_info")]
|
||||
public string? Ext { get; set; }
|
||||
public string? ExtendedInformation { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否是测试调用。
|
||||
|
Reference in New Issue
Block a user