AbsenceEntryDto
Backend-источник: feature.managertimetrackerservice/Feature.ManagerTimeTrackerService/Nuget.ManagerTimeTrackerApiClient/Dto/AbsenceEntry/AbsenceEntryDto.cs (feature.managertimetrackerservice).
Поля
| Поле | Тип (TS) | Обязательное | Описание | Тип (C#) |
|---|---|---|---|---|
id | number | да | — | int |
userId | number | да | — | int |
type | AbsenceTypeDto | да | — | AbsenceTypeDto |
dateFrom | string | да | ISO YYYY-MM-DD | DateOnly |
dateTo | string | да | ISO YYYY-MM-DD | DateOnly |
status | WorkTimeStatusDto | да | — | WorkTimeStatusDto |
reason | string | null | да | — | string? |
attachmentFileUrl | string | null | да | URL returned by FileApiClient on upload; null if no AU document attached. Use the file service to resolve a temp signed URL when displaying. | string? |
enteredBy | number | да | — | int |
approvedBy | number | null | да | — | int? |
approvedAt | string | null | да | ISO 8601 datetime; null until approved. | DateTimeOffset? |
Пример
json
{
"id": 0,
"userId": 0,
"type": "<AbsenceTypeDto>",
"dateFrom": "2026-05-05T08:00:00Z",
"dateTo": "2026-05-05T08:00:00Z",
"status": "<WorkTimeStatusDto>",
"reason": "string",
"attachmentFileUrl": "https://...",
"enteredBy": 0,
"approvedBy": 0,
"approvedAt": "2026-05-05T08:00:00Z"
}