mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2026-03-10 00:13:36 +08:00
feat(work): 随官方更新会议室相关接口模型
This commit is contained in:
+25
-1
@@ -1,4 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
@@ -25,6 +25,23 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("latitude")]
|
||||
public double Latitude { get; set; }
|
||||
}
|
||||
|
||||
public class Range
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置使用范围的成员 UserId 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_list")]
|
||||
public IList<string>? UserIdList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置使用范围的部门 ID 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("department_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("department_list")]
|
||||
public IList<long>? DepartmentId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -69,6 +86,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("coordinate")]
|
||||
public Types.Coordinate? Coordinate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置使用范围信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("range")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("range")]
|
||||
public Types.Range? Range { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议室支持的设备 ID 列表。
|
||||
/// </summary>
|
||||
|
||||
+12
-1
@@ -1,4 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
@@ -12,6 +12,10 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
public class Coordinate : CgibinOAMeetingRoomAddRequest.Types.Coordinate
|
||||
{
|
||||
}
|
||||
|
||||
public class Range : CgibinOAMeetingRoomAddRequest.Types.Range
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -63,6 +67,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("coordinate")]
|
||||
public Types.Coordinate? Coordinate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置使用范围信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("range")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("range")]
|
||||
public Types.Range? Range { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议室支持的设备 ID 列表。
|
||||
/// </summary>
|
||||
|
||||
+25
-1
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/oa/meetingroom/list 接口的响应。</para>
|
||||
@@ -14,6 +14,23 @@
|
||||
public class Coordinate : CgibinOAMeetingRoomAddRequest.Types.Coordinate
|
||||
{
|
||||
}
|
||||
|
||||
public class Range
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置使用范围的成员 UserId 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_list")]
|
||||
public string[]? UserIdList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置使用范围的部门 ID 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("department_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("department_list")]
|
||||
public long[]? DepartmentId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -65,6 +82,13 @@
|
||||
[System.Text.Json.Serialization.JsonPropertyName("coordinate")]
|
||||
public Types.Coordinate? Coordinate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置使用范围信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("range")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("range")]
|
||||
public Types.Range? Range { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议室支持的设备 ID 列表。
|
||||
/// </summary>
|
||||
|
||||
+5
-1
@@ -1,4 +1,4 @@
|
||||
{
|
||||
{
|
||||
"name": "18F-会议室",
|
||||
"capacity": 10,
|
||||
"city": "深圳",
|
||||
@@ -8,5 +8,9 @@
|
||||
"coordinate": {
|
||||
"latitude": "22.540503",
|
||||
"longitude": "113.934528"
|
||||
},
|
||||
"range": {
|
||||
"user_list": [ "zhangsan", "lisi" ],
|
||||
"department_list": [ 1 ]
|
||||
}
|
||||
}
|
||||
|
||||
+5
-1
@@ -1,4 +1,4 @@
|
||||
{
|
||||
{
|
||||
"meetingroom_id": 2,
|
||||
"name": "18F-会议室",
|
||||
"capacity": 10,
|
||||
@@ -9,5 +9,9 @@
|
||||
"coordinate": {
|
||||
"latitude": "22.540503",
|
||||
"longitude": "113.934528"
|
||||
},
|
||||
"range": {
|
||||
"user_list": [ "zhangsan", "lisi" ],
|
||||
"department_list": [ 1 ]
|
||||
}
|
||||
}
|
||||
|
||||
+5
-1
@@ -1,4 +1,4 @@
|
||||
{
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"meetingroom_list": [
|
||||
@@ -14,6 +14,10 @@
|
||||
"latitude": "22.540503",
|
||||
"longitude": "113.934528"
|
||||
},
|
||||
"range": {
|
||||
"user_list": [ "zhangsan", "lisi" ],
|
||||
"department_list": [ 1 ]
|
||||
},
|
||||
"need_approval": 1
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user