feat(work): 随官方更新会议室相关接口模型

This commit is contained in:
Fu Diwei
2023-05-24 10:34:54 +08:00
parent 5d353f3222
commit f3a271298e
6 changed files with 80 additions and 9 deletions

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -1,12 +1,16 @@
{
{
"name": "18F-会议室",
"capacity": 10,
"city": "深圳",
"building": "腾讯大厦",
"floor": "18F",
"equipment": [1, 2, 3],
"equipment": [ 1, 2, 3 ],
"coordinate": {
"latitude": "22.540503",
"longitude": "113.934528"
},
"range": {
"user_list": [ "zhangsan", "lisi" ],
"department_list": [ 1 ]
}
}

View File

@@ -1,13 +1,17 @@
{
{
"meetingroom_id": 2,
"name": "18F-会议室",
"capacity": 10,
"city": "深圳",
"building": "腾讯大厦",
"floor": "18F",
"equipment": [1, 2, 3],
"equipment": [ 1, 2, 3 ],
"coordinate": {
"latitude": "22.540503",
"longitude": "113.934528"
},
"range": {
"user_list": [ "zhangsan", "lisi" ],
"department_list": [ 1 ]
}
}

View File

@@ -1,4 +1,4 @@
{
{
"errcode": 0,
"errmsg": "ok",
"meetingroom_list": [
@@ -9,11 +9,15 @@
"city": "深圳",
"building": "腾讯大厦",
"floor": "18F",
"equipment": [1, 2, 3],
"equipment": [ 1, 2, 3 ],
"coordinate": {
"latitude": "22.540503",
"longitude": "113.934528"
},
"range": {
"user_list": [ "zhangsan", "lisi" ],
"department_list": [ 1 ]
},
"need_approval": 1
},
{