feat: добавил получение person id сотрудников
All checks were successful
Create and publish a Docker image / Publish image (push) Successful in 1m45s
All checks were successful
Create and publish a Docker image / Publish image (push) Successful in 1m45s
This commit is contained in:
@@ -0,0 +1,84 @@
|
||||
// Auto-generated by https://json2csharp.com/
|
||||
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SfeduSchedule.DTO.Responses;
|
||||
|
||||
// SearchEmployeesResponse myDeserializedClass = JsonSerializer.Deserialize<SearchEmployeesResponse>(myJsonResponse);
|
||||
|
||||
public record Embedded(
|
||||
[property: JsonPropertyName("persons")]
|
||||
IReadOnlyList<Person> Persons,
|
||||
[property: JsonPropertyName("employees")]
|
||||
IReadOnlyList<Employee> Employees,
|
||||
[property: JsonPropertyName("students")]
|
||||
IReadOnlyList<Student> Students
|
||||
);
|
||||
|
||||
public record Employee(
|
||||
[property: JsonPropertyName("id")] string Id,
|
||||
[property: JsonPropertyName("personId")]
|
||||
string PersonId,
|
||||
[property: JsonPropertyName("groupId")]
|
||||
string GroupId,
|
||||
[property: JsonPropertyName("groupName")]
|
||||
string GroupName,
|
||||
[property: JsonPropertyName("dateIn")] string DateIn,
|
||||
[property: JsonPropertyName("dateOut")]
|
||||
string DateOut
|
||||
);
|
||||
|
||||
public record Links(
|
||||
[property: JsonPropertyName("self")] Self Self
|
||||
);
|
||||
|
||||
public record Page(
|
||||
[property: JsonPropertyName("size")] int? Size,
|
||||
[property: JsonPropertyName("totalElements")]
|
||||
int? TotalElements,
|
||||
[property: JsonPropertyName("totalPages")]
|
||||
int? TotalPages,
|
||||
[property: JsonPropertyName("number")] int? Number
|
||||
);
|
||||
|
||||
public record Person(
|
||||
[property: JsonPropertyName("lastName")]
|
||||
string LastName,
|
||||
[property: JsonPropertyName("firstName")]
|
||||
string FirstName,
|
||||
[property: JsonPropertyName("middleName")]
|
||||
string MiddleName,
|
||||
[property: JsonPropertyName("fullName")]
|
||||
string FullName,
|
||||
[property: JsonPropertyName("_links")] Links Links,
|
||||
[property: JsonPropertyName("id")] string Id
|
||||
);
|
||||
|
||||
public record ModeusSearchPersonResponse(
|
||||
[property: JsonPropertyName("_embedded")]
|
||||
Embedded Embedded,
|
||||
[property: JsonPropertyName("page")] Page Page
|
||||
);
|
||||
|
||||
public record Self(
|
||||
[property: JsonPropertyName("href")] string Href
|
||||
);
|
||||
|
||||
public record Student(
|
||||
[property: JsonPropertyName("id")] string Id,
|
||||
[property: JsonPropertyName("personId")]
|
||||
string PersonId,
|
||||
[property: JsonPropertyName("flowId")] string FlowId,
|
||||
[property: JsonPropertyName("flowCode")]
|
||||
string FlowCode,
|
||||
[property: JsonPropertyName("specialtyCode")]
|
||||
string SpecialtyCode,
|
||||
[property: JsonPropertyName("specialtyName")]
|
||||
string SpecialtyName,
|
||||
[property: JsonPropertyName("specialtyProfile")]
|
||||
string SpecialtyProfile,
|
||||
[property: JsonPropertyName("learningStartDate")]
|
||||
DateTime? LearningStartDate,
|
||||
[property: JsonPropertyName("learningEndDate")]
|
||||
DateTime? LearningEndDate
|
||||
);
|
||||
Reference in New Issue
Block a user