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:
@@ -100,7 +100,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
public int? AllowType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置使用权限。
|
||||
/// 获取或设置使用的邮箱列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("allow_emaillist")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("allow_emaillist")]
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
public int AllowType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置使用权限。
|
||||
/// 获取或设置使用的邮箱列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("allow_emaillist")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("allow_emaillist")]
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
public class EmailGroup
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置邮件群组ID。
|
||||
/// 获取或设置邮件群组 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("groupid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("groupid")]
|
||||
@@ -31,12 +31,5 @@
|
||||
[Newtonsoft.Json.JsonProperty("groups")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("groups")]
|
||||
public Types.EmailGroup[] EmailGroupList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置返回条数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("count")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("count")]
|
||||
public int Count { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/exmail/group/update 接口的请求。</para>
|
||||
@@ -76,7 +74,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
public int? AllowType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置使用权限。
|
||||
/// 获取或设置使用的邮箱列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("allow_emaillist")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("allow_emaillist")]
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/exmail/publicmail/create 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExmailPublicMailCreateRequest : WechatWorkRequest
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class UserIdList
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置成员账号列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("list")]
|
||||
public IList<string> Items { get; set; } = new List<string>();
|
||||
}
|
||||
|
||||
public class TagIdList : CgibinExmailGroupCreateRequest.Types.TagIdList
|
||||
{
|
||||
}
|
||||
|
||||
public class DepartmentIdList : CgibinExmailGroupCreateRequest.Types.DepartmentIdList
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置业务邮箱。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("email")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("email")]
|
||||
public string Email { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置业务邮箱名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置允许使用的成员账号列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userid_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userid_list")]
|
||||
public Types.UserIdList? AllowUserIdList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置允许使用的标签 ID 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("tag_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("tag_list")]
|
||||
public Types.TagIdList? AllowTagIdList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置允许使用的部门 ID 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("department_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("department_list")]
|
||||
public Types.DepartmentIdList? AllowDepartmentIdList { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/exmail/publicmail/create 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExmailPublicMailCreateResponse : WechatWorkResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置业务邮箱 ID
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("id")]
|
||||
public int Id { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/exmail/publicmail/delete 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExmailPublicMailDeleteRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置业务邮箱 ID
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("id")]
|
||||
public int Id { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/exmail/publicmail/delete 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExmailPublicMailDeleteResponse : WechatWorkResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/exmail/publicmail/get 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExmailPublicMailGetRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置业务邮箱 ID 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("id_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("id_list")]
|
||||
public IList<int> IdList { get; set; } = new List<int>();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/exmail/publicmail/get 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExmailPublicMailGetResponse : WechatWorkResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Mail
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class UserIdList
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置成员账号列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("list")]
|
||||
public string[] Items { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class TagIdList : CgibinExmailGroupGetResponse.Types.TagIdList
|
||||
{
|
||||
}
|
||||
|
||||
public class DepartmentIdList : CgibinExmailGroupGetResponse.Types.DepartmentIdList
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置业务邮箱 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("id")]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置业务邮箱地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("email")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("email")]
|
||||
public string Email { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置业务邮箱名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||||
public string Name { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置允许使用的成员账号列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userid_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userid_list")]
|
||||
public Types.UserIdList? AllowUserIdList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置允许使用的标签 ID 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("tag_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("tag_list")]
|
||||
public Types.TagIdList? AllowTagIdList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置允许使用的部门 ID 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("department_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("department_list")]
|
||||
public Types.DepartmentIdList? AllowDepartmentIdList { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置业务邮箱列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("list")]
|
||||
public Types.Mail[] MailList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /cgi-bin/exmail/publicmail/search 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExmailPublicMailSearchRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置是否开启模糊搜索。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public bool IsFuzzy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置业务邮箱或名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string? EmailOrName { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /cgi-bin/exmail/publicmail/search 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExmailPublicMailSearchResponse : WechatWorkResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Mail
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置业务邮箱 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("id")]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置业务邮箱地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("email")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("email")]
|
||||
public string Email { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置业务邮箱名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||||
public string Name { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置业务邮箱列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("list")]
|
||||
public Types.Mail[] MailList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/exmail/publicmail/update 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExmailPublicMailUpdateRequest : WechatWorkRequest
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class UserIdList : CgibinExmailPublicMailCreateRequest.Types.UserIdList
|
||||
{
|
||||
}
|
||||
|
||||
public class TagIdList : CgibinExmailPublicMailCreateRequest.Types.TagIdList
|
||||
{
|
||||
}
|
||||
|
||||
public class DepartmentIdList : CgibinExmailPublicMailCreateRequest.Types.DepartmentIdList
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置业务邮箱 ID
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("id")]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置业务邮箱名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||||
public string? Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置允许使用的成员账号列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userid_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userid_list")]
|
||||
public Types.UserIdList? AllowUserIdList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置允许使用的标签 ID 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("tag_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("tag_list")]
|
||||
public Types.TagIdList? AllowTagIdList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置允许使用的部门 ID 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("department_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("department_list")]
|
||||
public Types.DepartmentIdList? AllowDepartmentIdList { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/exmail/publicmail/update 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExmailPublicMailUpdateResponse : WechatWorkResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user