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.Work.Models
{
@@ -13,7 +12,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
public override string? AccessToken { get; set; } = string.Empty;
public override string? AccessToken { get; set; }
/// <summary>
/// 获取或设置应用 ID。如果不指定将使用构造 <see cref="WechatWorkClient"/> 时的 <see cref="WechatWorkClientOptions.AgentId"/> 参数。

View File

@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/externalcontact/group_welcome_template/del 接口的请求。</para>
@@ -13,7 +10,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("template_id")]
[System.Text.Json.Serialization.JsonPropertyName("template_id")]
public string? TemplateId { get; set; } = string.Empty;
public string TemplateId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置授权方安装的应用 ID。

View File

@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/externalcontact/get_moment_comments 接口的响应。</para>
@@ -24,7 +21,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("external_userid")]
[System.Text.Json.Serialization.JsonPropertyName("external_userid")]
public string? ExternalUserId { get; set; } = default!;
public string? ExternalUserId { get; set; }
/// <summary>
/// 获取或设置互动时间戳。

View File

@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/meeting/get_user_meetingid 接口的请求。</para>
@@ -31,10 +28,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
/// <summary>
/// 获取或设置翻页标记。
/// <para>默认值0</para>
/// </summary>
[Newtonsoft.Json.JsonProperty("cursor")]
[System.Text.Json.Serialization.JsonPropertyName("cursor")]
public string? NextCursor { get; set; } = "0";
public string NextCursor { get; set; } = "0";
/// <summary>
/// 获取或设置分页每页数量。

View File

@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [GET] /cgi-bin/sync/contact_sync_success 接口的请求。</para>
@@ -13,6 +10,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
public override string? AccessToken { get; set; } = string.Empty;
public override string? AccessToken { get; set; }
}
}

View File

@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/wedrive/file_download 接口的响应。</para>
@@ -27,6 +24,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("cookie_value")]
[System.Text.Json.Serialization.JsonPropertyName("cookie_value")]
public string? CookieValue { get; set; } = default!;
public string? CookieValue { get; set; }
}
}

View File

@@ -1,6 +1,4 @@
using System;
namespace SKIT.FlurlHttpClient.Wechat.Work
namespace SKIT.FlurlHttpClient.Wechat.Work
{
/// <summary>
/// 一个用于构造 <see cref="WechatWorkClient"/> 时使用的配置项。
@@ -17,7 +15,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
/// 获取或设置企业微信 API 域名。
/// <para>默认值:<see cref="WechatWorkEndpoints.DEFAULT"/></para>
/// </summary>
public string? Endpoints { get; set; } = WechatWorkEndpoints.DEFAULT;
public string Endpoints { get; set; } = WechatWorkEndpoints.DEFAULT;
/// <summary>
/// 获取或设置企业微信 CorpId。