feat(wxapi): 随官方更新视频号小店商品相关接口模型

This commit is contained in:
Fu Diwei
2024-04-29 20:07:54 +08:00
parent 9d5fa9b09f
commit 59a44f9d7a
52 changed files with 202 additions and 7 deletions

View File

@@ -61,6 +61,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[Newtonsoft.Json.JsonProperty("template_id")]
[System.Text.Json.Serialization.JsonPropertyName("template_id")]
public long TemplateId { get; set; }
/// <summary>
/// 获取或设置商品重量(单位:克)。
/// </summary>
[Newtonsoft.Json.JsonProperty("weight")]
[System.Text.Json.Serialization.JsonPropertyName("weight")]
public int? Weight { get; set; }
}
public class SKU

View File

@@ -65,6 +65,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[System.Text.Json.Serialization.JsonPropertyName("template_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public long TemplateId { get; set; }
/// <summary>
/// 获取或设置商品重量(单位:克)。
/// </summary>
[Newtonsoft.Json.JsonProperty("weight")]
[System.Text.Json.Serialization.JsonPropertyName("weight")]
public int? Weight { get; set; }
}
public class SKU

View File

@@ -32,7 +32,14 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("sku_id")]
[System.Text.Json.Serialization.JsonPropertyName("sku_id")]
public long SKUId { get; set; }
public long? SKUId { get; set; }
/// <summary>
/// 获取或设置商家自定义 SKU ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("out_sku_id")]
[System.Text.Json.Serialization.JsonPropertyName("out_sku_id")]
public string? OutSKUId { get; set; }
/// <summary>
/// 获取或设置缩略图 URL。