Mail DTO
Описание сущностей и типов из src/dto/mail/.
Обогащено snapshot-данными бэкенд-DTO (4 из 4 типов сопоставлено, snapshot от 2026-05-05T13:21:51.699Z).
Содержание
- CreateMailRequestDto · backend ✓
- GetMailsRequestDto · backend ✓
- MailStatusDto · backend ✓
- UpdateMailStatusRequestDto · backend ✓
CreateMailRequestDto
Backend-источник: core.businesslogicservice/Core.BusinessLogicService/Nuget.BusinessApiClient/Dto/Mail/Requests/CreateMailRequestDto.cs (core.businesslogicservice).
Поля
| Поле | Тип (TS) | Обязательное | Описание | Тип (C#) |
|---|---|---|---|---|
file | File | Blob | да | — | IFormFile |
externalType | ExternalTypeDto | null | нет | — | ExternalTypeDto? |
externalTypeId | number | null | нет | — | int? |
Пример
{
"file": "<File | Blob>",
"externalType": "<externaltypedto>",
"externalTypeId": 0
}GetMailsRequestDto
Backend-источник: core.businesslogicservice/Core.BusinessLogicService/Nuget.BusinessApiClient/Dto/Mail/Requests/GetMailsRequestDto.cs (core.businesslogicservice).
Поля
| Поле | Тип (TS) | Обязательное | Описание | Тип (C#) |
|---|---|---|---|---|
pagination | Pagination | да | — | Pagination |
statuses | MailStatusDto[] | да | — | List<MailStatusDto> |
statusFilters | MailStatusDto[] | да | — | List<MailStatusDto>? |
Пример
{
"pagination": "<Pagination>",
"statuses": [],
"statusFilters": []
}MailStatusDto
Backend-источник: core.businesslogicservice/Core.BusinessLogicService/Nuget.BusinessApiClient/Dto/Mail/Enum/MailStatusDto.cs (core.businesslogicservice).
Также определён в:
infrastructure.notificationservice.
Значения
| Имя | Значение (TS) | Описание | Код (C#) |
|---|---|---|---|
NotFound | 0 | — | 0 |
New | 1 | — | 1 |
Printing | 2 | — | 2 |
Sent | 3 | — | 3 |
Archived | 4 | — | 4 |
Пример
0UpdateMailStatusRequestDto
Backend-источник: core.businesslogicservice/Core.BusinessLogicService/Nuget.BusinessApiClient/Dto/Mail/Requests/UpdateMailStatusRequestDto.cs (core.businesslogicservice).
Поля
| Поле | Тип (TS) | Обязательное | Описание | Тип (C#) |
|---|---|---|---|---|
mailId | number | да | — | int |
status | MailStatusDto | да | — | MailStatusDto |
Пример
{
"mailId": 0,
"status": "<MailStatusDto>"
}