feat(work): 新增接待人员管理相关接口

This commit is contained in:
Fu Diwei
2021-09-30 16:24:22 +08:00
parent 36f32e7263
commit 836aef598b
18 changed files with 298 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/externalcontact/get_intercept_rule_list 接口的请求。</para>
/// <para>表示 [GET] /cgi-bin/externalcontact/get_intercept_rule_list 接口的请求。</para>
/// </summary>
public class CgibinExternalContactGetInterceptRuleListRequest : WechatWorkRequest
{

View File

@@ -1,7 +1,7 @@
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/externalcontact/get_intercept_rule_list 接口的响应。</para>
/// <para>表示 [GET] /cgi-bin/externalcontact/get_intercept_rule_list 接口的响应。</para>
/// </summary>
public class CgibinExternalContactGetInterceptRuleListResponse : WechatWorkResponse
{

View File

@@ -1,7 +1,7 @@
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/kf/account/list 接口的请求。</para>
/// <para>表示 [GET] /cgi-bin/kf/account/list 接口的请求。</para>
/// </summary>
public class CgibinKfAccountListRequest : WechatWorkRequest
{

View File

@@ -1,7 +1,7 @@
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/kf/account/list 接口的响应。</para>
/// <para>表示 [GET] /cgi-bin/kf/account/list 接口的响应。</para>
/// </summary>
public class CgibinKfAccountListResponse : WechatWorkResponse
{

View File

@@ -0,0 +1,24 @@
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/kf/servicer/add 接口的请求。</para>
/// </summary>
public class CgibinKfServicerAddRequest : WechatWorkRequest
{
/// <summary>
/// 获取或设置客服账号 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("open_kfid")]
[System.Text.Json.Serialization.JsonPropertyName("open_kfid")]
public string OpenKfId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置接待人员的 UserId 列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("userid_list")]
[System.Text.Json.Serialization.JsonPropertyName("userid_list")]
public IList<string> UserIdList { get; set; } = new List<string>();
}
}

View File

@@ -0,0 +1,42 @@
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/kf/servicer/add 接口的响应。</para>
/// </summary>
public class CgibinKfServicerAddResponse : WechatWorkResponse
{
public static class Types
{
public class Result
{
/// <summary>
/// 获取或设置接待人员的 UserId。
/// </summary>
[Newtonsoft.Json.JsonProperty("userid")]
[System.Text.Json.Serialization.JsonPropertyName("userid")]
public string UserId { get; set; } = default!;
/// <summary>
/// 获取或设置错误码。
/// </summary>
[Newtonsoft.Json.JsonProperty("errcode")]
[System.Text.Json.Serialization.JsonPropertyName("errcode")]
public int ErrorCode { get; set; }
/// <summary>
/// 获取或设置错误描述。
/// </summary>
[Newtonsoft.Json.JsonProperty("errmsg")]
[System.Text.Json.Serialization.JsonPropertyName("errmsg")]
public string ErrorMessage { get; set; } = default!;
}
}
/// <summary>
/// 获取或设置结果列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("result_list")]
[System.Text.Json.Serialization.JsonPropertyName("result_list")]
public Types.Result[] ResultList { get; set; } = default!;
}
}

View File

@@ -0,0 +1,24 @@
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/kf/servicer/del 接口的请求。</para>
/// </summary>
public class CgibinKfServicerDeleteRequest : WechatWorkRequest
{
/// <summary>
/// 获取或设置客服账号 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("open_kfid")]
[System.Text.Json.Serialization.JsonPropertyName("open_kfid")]
public string OpenKfId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置接待人员的 UserId 列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("userid_list")]
[System.Text.Json.Serialization.JsonPropertyName("userid_list")]
public IList<string> UserIdList { get; set; } = new List<string>();
}
}

View File

@@ -0,0 +1,22 @@
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/kf/servicer/del 接口的响应。</para>
/// </summary>
public class CgibinKfServicerDeleteResponse : WechatWorkResponse
{
public static class Types
{
public class Result : CgibinKfServicerAddResponse.Types.Result
{
}
}
/// <summary>
/// 获取或设置结果列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("result_list")]
[System.Text.Json.Serialization.JsonPropertyName("result_list")]
public Types.Result[] ResultList { get; set; } = default!;
}
}

View File

@@ -0,0 +1,15 @@
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [GET] /cgi-bin/kf/servicer/list 接口的请求。</para>
/// </summary>
public class CgibinKfServicerListRequest : WechatWorkRequest
{
/// <summary>
/// 获取或设置客服账号 ID。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
public string OpenKfId { get; set; } = string.Empty;
}
}

View File

@@ -0,0 +1,35 @@
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [GET] /cgi-bin/kf/servicer/list 接口的响应。</para>
/// </summary>
public class CgibinKfServicerListResponse : WechatWorkResponse
{
public static class Types
{
public class Servicer
{
/// <summary>
/// 获取或设置接待人员的 UserId。
/// </summary>
[Newtonsoft.Json.JsonProperty("userid")]
[System.Text.Json.Serialization.JsonPropertyName("userid")]
public string UserId { get; set; } = default!;
/// <summary>
/// 获取或设置接待状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("status")]
[System.Text.Json.Serialization.JsonPropertyName("status")]
public int Status { get; set; }
}
}
/// <summary>
/// 获取或设置接待人员列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("servicer_list")]
[System.Text.Json.Serialization.JsonPropertyName("servicer_list")]
public Types.Servicer[] ServicerList { get; set; } = default!;
}
}