mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2026-02-14 12:06:21 +08:00
feat(work): 新增分配在职成员的客户群接口
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user