feat(work): 新增分配在职成员的客户群接口

This commit is contained in:
Fu Diwei
2022-06-22 22:14:32 +08:00
parent f0c0245de1
commit 42b869747c
5 changed files with 84 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/externalcontact/groupchat/onjob_transfer 接口的请求。</para>
/// </summary>
public class CgibinExternalContactGroupChatOnJobTransferRequest : WechatWorkRequest
{
/// <summary>
/// 获取或设置客户群 ID 列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("chat_id_list")]
[System.Text.Json.Serialization.JsonPropertyName("chat_id_list")]
public IList<string> GroupChatIdList { get; set; } = new List<string>();
/// <summary>
/// 获取或设置新群主成员账号。
/// </summary>
[Newtonsoft.Json.JsonProperty("new_owner")]
[System.Text.Json.Serialization.JsonPropertyName("new_owner")]
public string NewOwnerUserId { get; set; } = string.Empty;
}
}

View File

@@ -0,0 +1,22 @@
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/externalcontact/groupchat/onjob_transfer 接口的响应。</para>
/// </summary>
public class CgibinExternalContactGroupChatOnJobTransferResponse : WechatWorkResponse
{
public static class Types
{
public class GroupChat : CgibinExternalContactGroupChatTransferResponse.Types.GroupChat
{
}
}
/// <summary>
/// 获取或设置转交失败的客户群列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("failed_chat_list")]
[System.Text.Json.Serialization.JsonPropertyName("failed_chat_list")]
public Types.GroupChat[]? FailedGroupChatList { get; set; }
}
}