mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-18 09:44:43 +08:00
fix(wxapi): 修复自定义交易组件获取快递公司列表接口模型的定义错误
This commit is contained in:
@@ -10,17 +10,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class DeliveryCompanyList
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置快递公司列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("company_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("company_list")]
|
||||
public DeliveryCompanyItem[] Items { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class DeliveryCompanyItem
|
||||
public class DeliveryCompany
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置快递公司 ID。
|
||||
@@ -41,8 +31,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
/// <summary>
|
||||
/// 获取或设置快递公司列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("data")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("data")]
|
||||
public Types.DeliveryCompanyList DeliveryCompanyList { get; set; } = default!;
|
||||
[Newtonsoft.Json.JsonProperty("company_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("company_list")]
|
||||
public Types.DeliveryCompany[] DeliveryCompanyList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"data": {
|
||||
"company_list": [
|
||||
{
|
||||
"delivery_id": "SF",
|
||||
@@ -17,4 +16,3 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user