Split archive journal to 2 sub-modules by status. Add possibility to upload file for equipment. Change date fields for equipment.

This commit is contained in:
Первов Артем
2026-05-11 09:41:03 +03:00
parent 67f7d617be
commit 05ae32c030
33 changed files with 2753 additions and 1699 deletions

View File

@@ -147,14 +147,14 @@
"label": null
},
{
"name": "attachment",
"type": "DTO.FileAttachment",
"name": "attachments",
"type": "DTO.FileAttachment[]",
"required": false,
"nullable": true,
"unique": false,
"primary": false,
"description": "Вложение (файл в MinIO/S3)",
"map": "Equipment.attachment",
"map": "Equipment.attachments",
"sync": false,
"label": null
}
@@ -763,9 +763,9 @@
},
{
"name": "uploadEquipmentAttachment",
"label": "POST /equipment/{id}/attachment",
"label": "POST /equipment/{id}/attachments",
"method": "POST",
"path": "/equipment/{id}/attachment",
"path": "/equipment/{id}/attachments",
"description": "Загрузить файл-вложение (multipart/form-data, поле file)",
"attributes": [
{
@@ -777,29 +777,39 @@
},
{
"name": "deleteEquipmentAttachment",
"label": "DELETE /equipment/{id}/attachment",
"label": "DELETE /equipment/{id}/attachments/{attachmentId}",
"method": "DELETE",
"path": "/equipment/{id}/attachment",
"path": "/equipment/{id}/attachments/{attachmentId}",
"description": "Удалить файл-вложение из хранилища и из записи",
"attributes": [
{
"name": "id",
"type": "uuid",
"description": null
},
{
"name": "attachmentId",
"type": "uuid",
"description": null
}
]
},
{
"name": "downloadEquipmentAttachment",
"label": "GET /equipment/{id}/attachment/download",
"label": "GET /equipment/{id}/attachments/{attachmentId}/download",
"method": "GET",
"path": "/equipment/{id}/attachment/download",
"path": "/equipment/{id}/attachments/{attachmentId}/download",
"description": "Скачать файл-вложение (Content-Disposition: attachment, поток из MinIO)",
"attributes": [
{
"name": "id",
"type": "uuid",
"description": null
},
{
"name": "attachmentId",
"type": "uuid",
"description": null
}
]
}