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,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
{
@@ -52,7 +51,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("business_time")]
[System.Text.Json.Serialization.JsonPropertyName("business_time")]
public string? LicenseValidDate { get; set; } = string.Empty;
public string? LicenseValidDate { get; set; }
}
public class OrganizationCertificate

View File

@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
{
/// <summary>
/// <para>表示 [GET] /profitsharing/return-orders 接口的请求。</para>
@@ -13,7 +10,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
public string? SubMerchantId { get; set; } = string.Empty;
public string? SubMerchantId { get; set; }
/// <summary>
/// 获取或设置商户分账单号。

View File

@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
{
/// <summary>
/// <para>表示 [POST] /profitsharing/receivers/add 接口的请求。</para>
@@ -13,7 +10,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("sub_mchid")]
[System.Text.Json.Serialization.JsonPropertyName("sub_mchid")]
public string? SubMerchantId { get; set; } = string.Empty;
public string? SubMerchantId { get; set; }
/// <summary>
/// 获取或设置微信 AppId。

View File

@@ -18,7 +18,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
/// 获取或设置微信支付 API 域名。
/// <para>默认值:<see cref="WechatTenpayEndpoints.DEFAULT"/></para>
/// </summary>
public string? Endpoints { get; set; } = WechatTenpayEndpoints.DEFAULT;
public string Endpoints { get; set; } = WechatTenpayEndpoints.DEFAULT;
/// <summary>
/// 获取或设置声明应答中的错误描述使用的自然语言语种。