mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-16 07:59:44 +08:00
feat(work): 随官方更新通讯录 UserId 排序接口请求模型
This commit is contained in:
parent
8febfe5aef
commit
e400cd237e
@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 EVENT.upload_media_job_finish 事件的数据。</para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/96219 </para>
|
||||
/// </summary>
|
||||
public class UploadMediaJobFinishEvent : WechatWorkEvent, WechatWorkEvent.Serialization.IXmlSerializable
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置任务 ID。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("JobId")]
|
||||
public string JobId { get; set; } = default!;
|
||||
}
|
||||
}
|
@ -7,6 +7,26 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
/// </summary>
|
||||
public class CgibinServiceContactSortRequest : WechatWorkRequest
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class SortField
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置排序字段类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sort_field")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sort_field")]
|
||||
public int FieldType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置排序方式。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sort_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sort_type")]
|
||||
public int SortType { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置服务商 AccessToken。
|
||||
/// </summary>
|
||||
@ -22,11 +42,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
public string AuthorizerCorpId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置排序方式。
|
||||
/// 获取或设置排序字段列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sort_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sort_type")]
|
||||
public int SortType { get; set; }
|
||||
[Newtonsoft.Json.JsonProperty("sort_options")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sort_options")]
|
||||
public IList<Types.SortField>? SortFieldList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置要排序的成员账号列表。
|
||||
|
@ -0,0 +1,8 @@
|
||||
<xml>
|
||||
<ToUserName><![CDATA[wx28dbb14e3720FAKE]]></ToUserName>
|
||||
<FromUserName><![CDATA[sys]]></FromUserName>
|
||||
<CreateTime>1425284517</CreateTime>
|
||||
<MsgType><![CDATA[event]]></MsgType>
|
||||
<Event><![CDATA[upload_media_job_finish]]></Event>
|
||||
<JobId><![CDATA[jobid_S0MrnndvRG5fadSlLwiBqiDDbM143UqTmKP3152FZk4]]></JobId>
|
||||
</xml>
|
@ -1,5 +1,14 @@
|
||||
{
|
||||
"auth_corpid": "wwxxxxxx",
|
||||
"sort_type": 1,
|
||||
"useridlist": ["zhangshan", "lisi"]
|
||||
"useridlist": ["zhangshan", "lisi"],
|
||||
"sort_options": [
|
||||
{
|
||||
"sort_field": 0,
|
||||
"sort_type": 1
|
||||
},
|
||||
{
|
||||
"sort_field": 1,
|
||||
"sort_type": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user