style: clean code

This commit is contained in:
Fu Diwei
2021-09-23 19:59:42 +08:00
parent b29fdf78c6
commit 143a5104a7
26 changed files with 55 additions and 118 deletions

View File

@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Ads.Models
namespace SKIT.FlurlHttpClient.Wechat.Ads.Models
{
/// <summary>
/// <para>表示 [GET] /credit_bills/get 接口的请求。</para>
@@ -42,6 +39,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Ads.Models
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
public override string? Version { get; set; } = "v1.1";
public override string Version { get; set; } = "v1.1";
}
}

View File

@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Ads.Models
namespace SKIT.FlurlHttpClient.Wechat.Ads.Models
{
/// <summary>
/// <para>表示 [GET] /fund_statements_detailed/get 接口的请求。</para>
@@ -42,6 +39,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Ads.Models
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
public override string? Version { get; set; } = "v1.1";
public override string Version { get; set; } = "v1.1";
}
}

View File

@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Ads.Models
namespace SKIT.FlurlHttpClient.Wechat.Ads.Models
{
/// <summary>
/// <para>表示 [GET] /funds/get 接口的请求。</para>
@@ -14,6 +11,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Ads.Models
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
public override string? Version { get; set; } = "v1.1";
public override string Version { get; set; } = "v1.1";
}
}

View File

@@ -1,6 +1,4 @@
using System;
namespace SKIT.FlurlHttpClient.Wechat.Ads
namespace SKIT.FlurlHttpClient.Wechat.Ads
{
/// <summary>
/// 一个用于构造 <see cref="WechatAdsClient"/> 时使用的配置项。
@@ -17,7 +15,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Ads
/// 获取或设置微信广告平台 API 域名。
/// <para>默认值:<see cref="WechatAdsEndpoints.DEFAULT"/></para>
/// </summary>
public string? Endpoints { get; set; } = WechatAdsEndpoints.DEFAULT;
public string Endpoints { get; set; } = WechatAdsEndpoints.DEFAULT;
/// <summary>
/// 获取或设置微信广告平台服务商 ID。

View File

@@ -1,6 +1,4 @@
using System;
namespace SKIT.FlurlHttpClient.Wechat.Ads
namespace SKIT.FlurlHttpClient.Wechat.Ads
{
/// <summary>
/// 微信广告平台 API 请求的基类。
@@ -27,6 +25,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Ads
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
public virtual string? Version { get; set; } = "v1.0";
public virtual string Version { get; set; } = "v1.0";
}
}