Skip to content

Commit

Permalink
fix(wxapi): 修复发布能力相关接口模型字段类型定义错误
Browse files Browse the repository at this point in the history
  • Loading branch information
fudiwei committed Oct 12, 2023
1 parent 76ddb63 commit 2b0cc2c
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
{
/// <summary>
/// <para>表示 EVENT.FREEPUBLISHJOBFINISH 事件的数据。</para>
Expand Down Expand Up @@ -59,8 +59,9 @@ public class Item
/// </summary>
[Newtonsoft.Json.JsonProperty("publish_id")]
[System.Text.Json.Serialization.JsonPropertyName("publish_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
[System.Xml.Serialization.XmlElement("publish_id")]
public string PublishId { get; set; } = default!;
public long PublishId { get; set; }

/// <summary>
/// 获取或设置发布状态。
Expand All @@ -75,6 +76,7 @@ public class Item
/// </summary>
[Newtonsoft.Json.JsonProperty("article_id")]
[System.Text.Json.Serialization.JsonPropertyName("article_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringReadOnlyConverter))]
[System.Xml.Serialization.XmlElement("article_id")]
public string? ArticleId { get; set; }

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/freepublish/batchget 接口的响应。</para>
Expand Down Expand Up @@ -34,6 +34,7 @@ public class Article : CgibinFreePublishGetArticleResponse.Types.Article
/// </summary>
[Newtonsoft.Json.JsonProperty("article_id")]
[System.Text.Json.Serialization.JsonPropertyName("article_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringReadOnlyConverter))]
public string ArticleId { get; set; } = default!;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/freepublish/delete 接口的请求。</para>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/freepublish/getarticle 接口的请求。</para>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/freepublish/get 接口的请求。</para>
Expand All @@ -10,6 +10,7 @@ public class CgibinFreePublishGetRequest : WechatApiRequest, IInferable<CgibinFr
/// </summary>
[Newtonsoft.Json.JsonProperty("publish_id")]
[System.Text.Json.Serialization.JsonPropertyName("publish_id")]
public string PublishId { get; set; } = string.Empty;
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public long PublishId { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/freepublish/get 接口的响应。</para>
Expand Down Expand Up @@ -50,7 +50,8 @@ public class Item
/// </summary>
[Newtonsoft.Json.JsonProperty("publish_id")]
[System.Text.Json.Serialization.JsonPropertyName("publish_id")]
public string PublishId { get; set; } = default!;
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public long PublishId { get; set; }

/// <summary>
/// 获取或设置发布状态。
Expand All @@ -64,6 +65,7 @@ public class Item
/// </summary>
[Newtonsoft.Json.JsonProperty("article_id")]
[System.Text.Json.Serialization.JsonPropertyName("article_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringReadOnlyConverter))]
public string? ArticleId { get; set; }

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ public class CgibinFreePublishSubmitResponse : WechatApiResponse
/// </summary>
[Newtonsoft.Json.JsonProperty("publish_id")]
[System.Text.Json.Serialization.JsonPropertyName("publish_id")]
public string PublishId { get; set; } = default!;
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public long PublishId { get; set; }

/// <summary>
/// 获取或设置消息数据 ID。
Expand Down

0 comments on commit 2b0cc2c

Please sign in to comment.