mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2026-02-11 10:16:20 +08:00
refactor(wxads): 优化代码
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Ads.Models
|
||||
{
|
||||
@@ -7,6 +7,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Ads.Models
|
||||
/// </summary>
|
||||
public class AdCreativesGetRequest : WechatAdsRequest
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Filter : Abstractions.CommonFilter
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置广告创意 ID。
|
||||
/// </summary>
|
||||
@@ -19,7 +26,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Ads.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public IList<CommonFilter>? Filters { get; set; }
|
||||
public IList<Types.Filter>? Filters { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置页大小。
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Ads.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Ads.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /adcreatives/get 接口的响应。</para>
|
||||
@@ -131,6 +131,10 @@
|
||||
[System.Text.Json.Serialization.JsonPropertyName("created_time")]
|
||||
public long CreateTimestamp { get; set; }
|
||||
}
|
||||
|
||||
public class Pagination : Abstractions.CommonPagination
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -145,7 +149,7 @@
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("page_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("page_info")]
|
||||
public CommonPagination Pagination { get; set; } = default!;
|
||||
public Types.Pagination Pagination { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user