mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-23 04:23:47 +08:00
feat(work): 随官方更新会议相关接口模型
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>表示 [POST] /cgi-bin/meeting/create 接口的响应。</para>
|
/// <para>表示 [POST] /cgi-bin/meeting/create 接口的响应。</para>
|
||||||
@@ -11,5 +11,12 @@
|
|||||||
[Newtonsoft.Json.JsonProperty("meetingid")]
|
[Newtonsoft.Json.JsonProperty("meetingid")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("meetingid")]
|
[System.Text.Json.Serialization.JsonPropertyName("meetingid")]
|
||||||
public string MeetingId { get; set; } = default!;
|
public string MeetingId { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置无效会议帐号 UserId 列表。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("excess_users")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("excess_users")]
|
||||||
|
public string[]? ExcessUserIdList { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>表示 [POST] /cgi-bin/meeting/get_info 接口的响应。</para>
|
/// <para>表示 [POST] /cgi-bin/meeting/get_info 接口的响应。</para>
|
||||||
@@ -26,6 +26,34 @@
|
|||||||
[Newtonsoft.Json.JsonProperty("status")]
|
[Newtonsoft.Json.JsonProperty("status")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||||
public int Status { get; set; }
|
public int Status { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置首次加入会议时间戳。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("first_join_time")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("first_join_time")]
|
||||||
|
public long? FirstJoinTimestamp { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置最后一次离开会议时间戳。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("last_quit_time")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("last_quit_time")]
|
||||||
|
public long? LastQuitTimestamp { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置入会次数。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("total_join_count")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("total_join_count")]
|
||||||
|
public int TotalJoinCount { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置累计参会时长(单位:秒)。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("cumulative_time")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("cumulative_time")]
|
||||||
|
public int CumulativeTime { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class ExternalUser
|
public class ExternalUser
|
||||||
@@ -43,6 +71,34 @@
|
|||||||
[Newtonsoft.Json.JsonProperty("status")]
|
[Newtonsoft.Json.JsonProperty("status")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||||
public int Status { get; set; }
|
public int Status { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置首次加入会议时间戳。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("first_join_time")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("first_join_time")]
|
||||||
|
public long? FirstJoinTimestamp { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置最后一次离开会议时间戳。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("last_quit_time")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("last_quit_time")]
|
||||||
|
public long? LastQuitTimestamp { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置入会次数。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("total_join_count")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("total_join_count")]
|
||||||
|
public int TotalJoinCount { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置累计参会时长(单位:秒)。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("cumulative_time")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("cumulative_time")]
|
||||||
|
public int CumulativeTime { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Device
|
public class Device
|
||||||
@@ -305,5 +361,19 @@
|
|||||||
[Newtonsoft.Json.JsonProperty("reminders")]
|
[Newtonsoft.Json.JsonProperty("reminders")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("reminders")]
|
[System.Text.Json.Serialization.JsonPropertyName("reminders")]
|
||||||
public Types.Reminder? Reminder { get; set; }
|
public Types.Reminder? Reminder { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置会议号。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("meeting_code")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("meeting_code")]
|
||||||
|
public string MeetingCode { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置会议链接。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("meeting_link")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("meeting_link")]
|
||||||
|
public string MeetingLink { get; set; } = default!;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,9 +1,15 @@
|
|||||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>表示 [POST] /cgi-bin/meeting/update 接口的响应。</para>
|
/// <para>表示 [POST] /cgi-bin/meeting/update 接口的响应。</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CgibinMeetingUpdateResponse : WechatWorkResponse
|
public class CgibinMeetingUpdateResponse : WechatWorkResponse
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置无效会议帐号 UserId 列表。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("excess_users")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("excess_users")]
|
||||||
|
public string[]? ExcessUserIdList { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"errcode": 0,
|
"errcode": 0,
|
||||||
"errmsg": "ok",
|
"errmsg": "ok",
|
||||||
"meetingid": "XXXXXXXXX"
|
"meetingid": "XXXXXXXXX",
|
||||||
|
"excess_users": [ "zhangsan", "lisi" ]
|
||||||
}
|
}
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"errcode": 0,
|
"errcode": 0,
|
||||||
"errmsg": "ok",
|
"errmsg": "ok",
|
||||||
"admin_userid": "zhangsan",
|
"admin_userid": "zhangsan",
|
||||||
@@ -13,21 +13,37 @@
|
|||||||
"member": [
|
"member": [
|
||||||
{
|
{
|
||||||
"userid": "lisi",
|
"userid": "lisi",
|
||||||
"status": 1
|
"status": 1,
|
||||||
|
"first_join_time": 166666666,
|
||||||
|
"last_quit_time": 166666666,
|
||||||
|
"total_join_count": 5,
|
||||||
|
"cumulative_time": 300
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"userid": "zhangsan",
|
"userid": "zhangsan",
|
||||||
"status": 2
|
"status": 2,
|
||||||
|
"first_join_time": 166666666,
|
||||||
|
"last_quit_time": 166666666,
|
||||||
|
"total_join_count": 5,
|
||||||
|
"cumulative_time": 300
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"tmp_external_user": [
|
"tmp_external_user": [
|
||||||
{
|
{
|
||||||
"tmp_external_userid": "woabc",
|
"tmp_external_userid": "woabc",
|
||||||
"status": 3
|
"status": 3,
|
||||||
|
"first_join_time": 166666666,
|
||||||
|
"last_quit_time": 166666666,
|
||||||
|
"total_join_count": 5,
|
||||||
|
"cumulative_time": 300
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"tmp_external_userid": "woefd",
|
"tmp_external_userid": "woefd",
|
||||||
"status": 4
|
"status": 4,
|
||||||
|
"first_join_time": 166666666,
|
||||||
|
"last_quit_time": 166666666,
|
||||||
|
"total_join_count": 5,
|
||||||
|
"cumulative_time": 300
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -40,10 +56,10 @@
|
|||||||
"allow_external_user": false,
|
"allow_external_user": false,
|
||||||
"enable_screen_watermark": false,
|
"enable_screen_watermark": false,
|
||||||
"hosts": {
|
"hosts": {
|
||||||
"userid": ["lisi", "wangwu"]
|
"userid": [ "lisi", "wangwu" ]
|
||||||
},
|
},
|
||||||
"ring_users": {
|
"ring_users": {
|
||||||
"userid": ["zhangsan", "lis"]
|
"userid": [ "zhangsan", "lis" ]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"cal_id": "wcjgewCwAAqeJcPI1d8Pwbjt7nttzAAA",
|
"cal_id": "wcjgewCwAAqeJcPI1d8Pwbjt7nttzAAA",
|
||||||
@@ -52,6 +68,8 @@
|
|||||||
"repeat_type": 0,
|
"repeat_type": 0,
|
||||||
"repeat_until": 1606976813,
|
"repeat_until": 1606976813,
|
||||||
"repeat_interval": 1,
|
"repeat_interval": 1,
|
||||||
"remind_before": [5, 10]
|
"remind_before": [ 5, 10 ]
|
||||||
}
|
},
|
||||||
|
"meeting_code": "123456789",
|
||||||
|
"meeting_link": "https://wecomm.com/znigeot"
|
||||||
}
|
}
|
||||||
|
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"errcode": 0,
|
||||||
|
"errmsg": "ok",
|
||||||
|
"excess_users": [ "lisi", "wangwu" ]
|
||||||
|
}
|
Reference in New Issue
Block a user