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

This commit is contained in:
Fu Diwei 2022-03-14 14:01:37 +08:00
parent cc444a668f
commit 6ef991898d
6 changed files with 29 additions and 14 deletions

View File

@ -20,10 +20,10 @@
public int MeetingRoomId { get; set; }
/// <summary>
/// 获取或设置排期列表
/// 获取或设置排期信息
/// </summary>
[Newtonsoft.Json.JsonProperty("schedule")]
[System.Text.Json.Serialization.JsonPropertyName("schedule")]
public Types.Schedule[] ScheduleList { get; set; } = default!;
public Types.Schedule Schedule { get; set; } = default!;
}
}

View File

@ -47,6 +47,13 @@
[Newtonsoft.Json.JsonProperty("booker")]
[System.Text.Json.Serialization.JsonPropertyName("booker")]
public string? BookerUserId { get; set; }
/// <summary>
/// 获取或设置预定状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("status")]
[System.Text.Json.Serialization.JsonPropertyName("status")]
public int Status { get; set; }
}
}

View File

@ -84,6 +84,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
[Newtonsoft.Json.JsonProperty("attendees")]
[System.Text.Json.Serialization.JsonPropertyName("attendees")]
public IList<Types.Attendee>? AttendeeList { get; set; }
/// <summary>
/// 获取或设置是否忽略参与者字段。
/// </summary>
[Newtonsoft.Json.JsonProperty("skip_attendees")]
[System.Text.Json.Serialization.JsonPropertyName("skip_attendees")]
public bool? RequireSkipAttendees { get; set; }
}
}

View File

@ -2,13 +2,12 @@
"errcode": 0,
"errmsg": "ok",
"meetingroom_id": 1,
"schedule": [
{
"meeting_id": "mtebsada6e027c123cbafAAA",
"schedule_id": "17c7d2bd9f20d652840f72f59e796AAA",
"start_time": 1593532800,
"end_time": 1593662400,
"booker": "zhangsan"
}
]
}
"schedule": {
"meeting_id": "mtebsada6e027c123cbafAAA",
"schedule_id": "17c7d2bd9f20d652840f72f59e796AAA",
"start_time": 1593532800,
"end_time": 1593662400,
"booker": "zhangsan",
"status": 0
}
}

View File

@ -10,7 +10,8 @@
"schedule_id": "17c7d2bd9f20d652840f72f59e796AAA",
"start_time": 1593532800,
"end_time": 1593662400,
"booker": "zhangsan"
"booker": "zhangsan",
"status": 0
}
]
},

View File

@ -23,6 +23,7 @@
"repeat_day_of_month": [ 10, 21 ],
"timezone": 8
},
"location": "test_place"
"location": "test_place",
"skip_attendees": true
}
}