From c8ec264f137879f45d08d82e9510df95956e4be7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D1=82=D0=B5=D0=BF=D0=B0=D0=BD=D0=BE=D0=B2=20=D0=94?= =?UTF-8?q?=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9=20=D0=90=D0=BB=D0=B5=D0=BA?= =?UTF-8?q?=D1=81=D0=B0=D0=BD=D0=B4=D1=80=D0=BE=D0=B2=D0=B8=D1=87?= Date: Wed, 12 Jul 2023 18:16:36 +0500 Subject: [PATCH 1/7] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB?= =?UTF-8?q?=20=D0=BD=D0=BE=D0=B2=D1=8B=D0=B9=20=D0=BC=D0=B5=D1=82=D0=BE?= =?UTF-8?q?=D0=B4=20=D0=BA=D0=BE=D0=BD=D1=82=D1=80=D0=BE=D0=BB=D0=BB=D0=B5?= =?UTF-8?q?=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Добавил новый метод в контроллер. 2. В репозитории сделал проверку на наличие справки для страницы. 3. В методах контроллера добавил фильтрацию для id категории. --- .../Repositories/IHelpPageRepository.cs | 11 ++++++++ .../Repository/HelpPageRepository.cs | 5 ++++ .../Controllers/HelpPageController.cs | 28 +++++++++++++++++-- 3 files changed, 42 insertions(+), 2 deletions(-) diff --git a/AsbCloudApp/Repositories/IHelpPageRepository.cs b/AsbCloudApp/Repositories/IHelpPageRepository.cs index 26f9c69e..4864d2cf 100644 --- a/AsbCloudApp/Repositories/IHelpPageRepository.cs +++ b/AsbCloudApp/Repositories/IHelpPageRepository.cs @@ -20,4 +20,15 @@ public interface IHelpPageRepository : ICrudRepository Task GetOrDefaultByUrlPageAndIdCategoryAsync(string urlPage, int idCategory, CancellationToken cancellationToken); + + /// + /// Проверяет наличие справки для страницы + /// + /// + /// + /// + /// + Task IsExistingAsync(string urlPage, + int idCategory, + CancellationToken cancellationToken); } diff --git a/AsbCloudInfrastructure/Repository/HelpPageRepository.cs b/AsbCloudInfrastructure/Repository/HelpPageRepository.cs index dfc912a3..bf1cbbf3 100644 --- a/AsbCloudInfrastructure/Repository/HelpPageRepository.cs +++ b/AsbCloudInfrastructure/Repository/HelpPageRepository.cs @@ -31,4 +31,9 @@ public class HelpPageRepository : CrudRepositoryBase, return helpPage.Adapt(); } + + public Task IsExistingAsync(string urlPage, int idCategory, CancellationToken cancellationToken) => + dbContext.HelpPages.AnyAsync(h => h.UrlPage == urlPage && + h.IdCategory == idCategory, + cancellationToken); } diff --git a/AsbCloudWebApi/Controllers/HelpPageController.cs b/AsbCloudWebApi/Controllers/HelpPageController.cs index bae2010e..26d4ec4b 100644 --- a/AsbCloudWebApi/Controllers/HelpPageController.cs +++ b/AsbCloudWebApi/Controllers/HelpPageController.cs @@ -21,12 +21,15 @@ public class HelpPageController : ControllerBase { private readonly IHelpPageService helpPageService; private readonly IUserRepository userRepository; + private readonly IHelpPageRepository helpPageRepository; public HelpPageController(IHelpPageService helpPageService, - IUserRepository userRepository) + IUserRepository userRepository, + IHelpPageRepository helpPageRepository) { this.helpPageService = helpPageService; this.userRepository = userRepository; + this.helpPageRepository = helpPageRepository; } /// @@ -78,7 +81,8 @@ public class HelpPageController : ControllerBase [ProducesResponseType(typeof(PhysicalFileResult), (int)HttpStatusCode.OK)] [ProducesResponseType(StatusCodes.Status204NoContent)] public async Task GetFileAsync(string urlPage, - int idCategory, + [Range(minimum: 20000, maximum: 20000, ErrorMessage = "Категория файла недопустима. Допустимые: 20000")] + int idCategory, CancellationToken cancellationToken) { var file = await helpPageService.GetFileStreamAsync(urlPage, @@ -94,4 +98,24 @@ public class HelpPageController : ControllerBase return File(memoryStream, "application/pdf", file.fileName); } + + /// + /// Проверяет наличие справки для страницы + /// + /// Url страницы + /// Id категории файла. Допустимое значение параметра: 20000 + /// + /// + [HttpGet] + [Route("isExisting/{urlPage}/{idCategory}")] + [ProducesResponseType(typeof(bool), (int)HttpStatusCode.OK)] + public async Task IsExistingAsync(string urlPage, + [Range(minimum: 20000, maximum: 20000, ErrorMessage = "Категория файла недопустима. Допустимые: 20000")] + int idCategory, + CancellationToken cancellationToken) + { + return Ok(await helpPageRepository.IsExistingAsync(urlPage, + idCategory, + cancellationToken)); + } } From 50a53fb1e45b638f53ba91ab2db46ddcb4e59065 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D1=82=D0=B5=D0=BF=D0=B0=D0=BD=D0=BE=D0=B2=20=D0=94?= =?UTF-8?q?=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9=20=D0=90=D0=BB=D0=B5=D0=BA?= =?UTF-8?q?=D1=81=D0=B0=D0=BD=D0=B4=D1=80=D0=BE=D0=B2=D0=B8=D1=87?= Date: Fri, 14 Jul 2023 12:39:02 +0500 Subject: [PATCH 2/7] =?UTF-8?q?=D0=A0=D0=B0=D1=81=D1=88=D0=B8=D1=80=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=BA=D0=BE=D0=BD=D1=82=D1=80=D0=BE=D0=BB=D0=BB=D0=B5?= =?UTF-8?q?=D1=80=20=D0=B4=D0=BB=D1=8F=20=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BE=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Добавил контроллер, проверяющий наличие справки для страницы. 2. Добавил атрибут Required на некоторые параметры в методах в контроллере. --- .../Controllers/HelpPageController.cs | 36 ++++++++++++++++--- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/AsbCloudWebApi/Controllers/HelpPageController.cs b/AsbCloudWebApi/Controllers/HelpPageController.cs index bae2010e..b230557b 100644 --- a/AsbCloudWebApi/Controllers/HelpPageController.cs +++ b/AsbCloudWebApi/Controllers/HelpPageController.cs @@ -21,12 +21,15 @@ public class HelpPageController : ControllerBase { private readonly IHelpPageService helpPageService; private readonly IUserRepository userRepository; + private readonly IHelpPageRepository helpPageRepository; public HelpPageController(IHelpPageService helpPageService, - IUserRepository userRepository) + IUserRepository userRepository, + IHelpPageRepository helpPageRepository) { this.helpPageService = helpPageService; this.userRepository = userRepository; + this.helpPageRepository = helpPageRepository; } /// @@ -41,7 +44,7 @@ public class HelpPageController : ControllerBase [Permission] [ProducesResponseType(typeof(int), (int)HttpStatusCode.OK)] public async Task UploadAsync( - string urlPage, + [Required] string urlPage, [Range(minimum: 20000, maximum: 20000, ErrorMessage = "Категория файла недопустима. Допустимые: 20000")] int idCategory, [Required] IFormFile file, @@ -77,8 +80,10 @@ public class HelpPageController : ControllerBase [Route("{urlPage}/{idCategory}")] [ProducesResponseType(typeof(PhysicalFileResult), (int)HttpStatusCode.OK)] [ProducesResponseType(StatusCodes.Status204NoContent)] - public async Task GetFileAsync(string urlPage, - int idCategory, + public async Task GetFileAsync( + [Required] string urlPage, + [Range(minimum: 20000, maximum: 20000, ErrorMessage = "Категория файла недопустима. Допустимые: 20000")] + int idCategory, CancellationToken cancellationToken) { var file = await helpPageService.GetFileStreamAsync(urlPage, @@ -94,4 +99,27 @@ public class HelpPageController : ControllerBase return File(memoryStream, "application/pdf", file.fileName); } + + /// + /// Проверяет наличие справки для страницы + /// + /// Url страницы + /// Id категории файла. Допустимое значение параметра: 20000 + /// + /// + [HttpGet] + [Route("isExisting/{urlPage}/{idCategory}")] + [ProducesResponseType(typeof(bool), (int)HttpStatusCode.OK)] + public async Task IsExistingAsync( + [Required] string urlPage, + [Range(minimum: 20000, maximum: 20000, ErrorMessage = "Категория файла недопустима. Допустимые: 20000")] + int idCategory, + CancellationToken cancellationToken) + { + var helpPage = await helpPageRepository.GetOrDefaultByUrlPageAndIdCategoryAsync(urlPage, + idCategory, + cancellationToken); + + return Ok(helpPage != null); + } } From f8c9626a06372fba7d26f254ff5c914c275b0080 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D1=82=D0=B5=D0=BF=D0=B0=D0=BD=D0=BE=D0=B2=20=D0=94?= =?UTF-8?q?=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9=20=D0=90=D0=BB=D0=B5=D0=BA?= =?UTF-8?q?=D1=81=D0=B0=D0=BD=D0=B4=D1=80=D0=BE=D0=B2=D0=B8=D1=87?= Date: Tue, 18 Jul 2023 14:19:23 +0500 Subject: [PATCH 3/7] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20routes=20=D1=83=20=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BE?= =?UTF-8?q?=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AsbCloudWebApi/Controllers/HelpPageController.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/AsbCloudWebApi/Controllers/HelpPageController.cs b/AsbCloudWebApi/Controllers/HelpPageController.cs index b230557b..99014b02 100644 --- a/AsbCloudWebApi/Controllers/HelpPageController.cs +++ b/AsbCloudWebApi/Controllers/HelpPageController.cs @@ -77,7 +77,6 @@ public class HelpPageController : ControllerBase /// Токен для отмены задачи /// [HttpGet] - [Route("{urlPage}/{idCategory}")] [ProducesResponseType(typeof(PhysicalFileResult), (int)HttpStatusCode.OK)] [ProducesResponseType(StatusCodes.Status204NoContent)] public async Task GetFileAsync( @@ -108,7 +107,7 @@ public class HelpPageController : ControllerBase /// /// [HttpGet] - [Route("isExisting/{urlPage}/{idCategory}")] + [Route("isExisting")] [ProducesResponseType(typeof(bool), (int)HttpStatusCode.OK)] public async Task IsExistingAsync( [Required] string urlPage, From 789fafe4c5245b83b8a7c7c3c67c15a20dcb7acf Mon Sep 17 00:00:00 2001 From: Olga Nemt Date: Tue, 18 Jul 2023 14:41:20 +0500 Subject: [PATCH 4/7] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=20=D1=82=D0=B8=D0=BF=20=D1=81=D0=B2=D0=BE=D0=B9=D1=81=D1=82?= =?UTF-8?q?=D0=B2=D0=B0=20Items=20=D1=83=20PaginationContainer=20=D0=BD?= =?UTF-8?q?=D0=B0=20IEnumerable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AsbCloudApp/Data/PaginationContainer.cs | 14 +++----------- .../Repository/FileRepository.cs | 2 +- .../Repository/NotificationRepository.cs | 4 ++-- .../Repository/WellOperationRepository.cs | 2 +- .../Services/SAUB/MessageService.cs | 7 +++++-- 5 files changed, 12 insertions(+), 17 deletions(-) diff --git a/AsbCloudApp/Data/PaginationContainer.cs b/AsbCloudApp/Data/PaginationContainer.cs index bdee31be..61840893 100644 --- a/AsbCloudApp/Data/PaginationContainer.cs +++ b/AsbCloudApp/Data/PaginationContainer.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using System.Linq; namespace AsbCloudApp.Data { @@ -13,16 +14,7 @@ namespace AsbCloudApp.Data /// public PaginationContainer() { - Items = new List(4); - } - - /// - /// конструктор - /// - /// - public PaginationContainer(int capacity) - { - Items = new List(capacity); + Items = Enumerable.Empty(); } /// @@ -43,6 +35,6 @@ namespace AsbCloudApp.Data /// /// Данные /// - public List Items { get; set; } + public IEnumerable Items { get; set; } } } diff --git a/AsbCloudInfrastructure/Repository/FileRepository.cs b/AsbCloudInfrastructure/Repository/FileRepository.cs index 7b078e10..e75e7691 100644 --- a/AsbCloudInfrastructure/Repository/FileRepository.cs +++ b/AsbCloudInfrastructure/Repository/FileRepository.cs @@ -111,7 +111,7 @@ namespace AsbCloudInfrastructure.Repository .ToListAsync(token) .ConfigureAwait(false); - result.Items = entities.Select(e => Convert(e)).ToList(); + result.Items = entities.Select(e => Convert(e)); return result; } diff --git a/AsbCloudInfrastructure/Repository/NotificationRepository.cs b/AsbCloudInfrastructure/Repository/NotificationRepository.cs index 90799208..8a44a418 100644 --- a/AsbCloudInfrastructure/Repository/NotificationRepository.cs +++ b/AsbCloudInfrastructure/Repository/NotificationRepository.cs @@ -70,14 +70,14 @@ public class NotificationRepository : CrudCacheRepositoryBase x.Adapt()) - .ToListAsync(cancellationToken); + .ToArrayAsync(cancellationToken); return result; } diff --git a/AsbCloudInfrastructure/Repository/WellOperationRepository.cs b/AsbCloudInfrastructure/Repository/WellOperationRepository.cs index 00c87dbb..5d4795cb 100644 --- a/AsbCloudInfrastructure/Repository/WellOperationRepository.cs +++ b/AsbCloudInfrastructure/Repository/WellOperationRepository.cs @@ -165,7 +165,7 @@ namespace AsbCloudInfrastructure.Repository .Skip(result.Skip) .Take(result.Take); - result.Items = await query.ToListAsync(token); + result.Items = await query.ToArrayAsync(token); return result; } diff --git a/AsbCloudInfrastructure/Services/SAUB/MessageService.cs b/AsbCloudInfrastructure/Services/SAUB/MessageService.cs index 7b49d5c8..82f0abfc 100644 --- a/AsbCloudInfrastructure/Services/SAUB/MessageService.cs +++ b/AsbCloudInfrastructure/Services/SAUB/MessageService.cs @@ -101,6 +101,8 @@ namespace AsbCloudInfrastructure.Services.SAUB var eventsDict = events.ToDictionary(x=>x.IdEvent, x => x); var usersDict = users.ToDictionary(x => x.IdUser, x => x); + var messagesDtoList = new List(); + foreach (var message in messagesList) { var messageDto = new MessageDto @@ -126,10 +128,11 @@ namespace AsbCloudInfrastructure.Services.SAUB messageDto.CategoryId = e.IdCategory; messageDto.Message = e.MakeMessageText(message); } - - result.Items.Add(messageDto); + messagesDtoList.Add(messageDto); } + result.Items = result.Items.Concat(messagesDtoList); + return result; } From f5e00d7a5c62d7b8064598746acc5c50219de3b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D1=82=D0=B5=D0=BF=D0=B0=D0=BD=D0=BE=D0=B2=20=D0=94?= =?UTF-8?q?=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9=20=D0=90=D0=BB=D0=B5=D0=BA?= =?UTF-8?q?=D1=81=D0=B0=D0=BD=D0=B4=D1=80=D0=BE=D0=B2=D0=B8=D1=87?= Date: Tue, 18 Jul 2023 16:38:49 +0500 Subject: [PATCH 5/7] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=BD=D0=B0=D0=B7=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20?= =?UTF-8?q?=D0=BF=D0=B0=D1=80=D0=B0=D0=BC=D0=B5=D1=82=D1=80=D0=B0=20=D0=B2?= =?UTF-8?q?=20=D0=BA=D0=BE=D0=BD=D1=82=D1=80=D0=BE=D0=BB=D0=BB=D0=B5=D1=80?= =?UTF-8?q?=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/HelpPageController.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/AsbCloudWebApi/Controllers/HelpPageController.cs b/AsbCloudWebApi/Controllers/HelpPageController.cs index 99014b02..538ac31e 100644 --- a/AsbCloudWebApi/Controllers/HelpPageController.cs +++ b/AsbCloudWebApi/Controllers/HelpPageController.cs @@ -35,7 +35,7 @@ public class HelpPageController : ControllerBase /// /// Загрузка файла справки /// - /// Url страницы + /// Url страницы /// Id категории файла. Допустимое значение параметра: 20000 /// Файл справки /// Токен для отмены задачи @@ -44,7 +44,7 @@ public class HelpPageController : ControllerBase [Permission] [ProducesResponseType(typeof(int), (int)HttpStatusCode.OK)] public async Task UploadAsync( - [Required] string urlPage, + [Required] string key, [Range(minimum: 20000, maximum: 20000, ErrorMessage = "Категория файла недопустима. Допустимые: 20000")] int idCategory, [Required] IFormFile file, @@ -60,7 +60,7 @@ public class HelpPageController : ControllerBase using var fileStream = file.OpenReadStream(); - int helpPageId = await helpPageService.AddOrUpdateAsync(urlPage, + int helpPageId = await helpPageService.AddOrUpdateAsync(key, idCategory, file.FileName, fileStream, @@ -72,7 +72,7 @@ public class HelpPageController : ControllerBase /// /// Получение файла справки /// - /// Url страницы + /// Url страницы /// Id категории файла. Допустимое значение параметра: 20000 /// Токен для отмены задачи /// @@ -80,12 +80,12 @@ public class HelpPageController : ControllerBase [ProducesResponseType(typeof(PhysicalFileResult), (int)HttpStatusCode.OK)] [ProducesResponseType(StatusCodes.Status204NoContent)] public async Task GetFileAsync( - [Required] string urlPage, + [Required] string key, [Range(minimum: 20000, maximum: 20000, ErrorMessage = "Категория файла недопустима. Допустимые: 20000")] int idCategory, CancellationToken cancellationToken) { - var file = await helpPageService.GetFileStreamAsync(urlPage, + var file = await helpPageService.GetFileStreamAsync(key, idCategory, cancellationToken); @@ -102,7 +102,7 @@ public class HelpPageController : ControllerBase /// /// Проверяет наличие справки для страницы /// - /// Url страницы + /// Url страницы /// Id категории файла. Допустимое значение параметра: 20000 /// /// @@ -110,12 +110,12 @@ public class HelpPageController : ControllerBase [Route("isExisting")] [ProducesResponseType(typeof(bool), (int)HttpStatusCode.OK)] public async Task IsExistingAsync( - [Required] string urlPage, + [Required] string key, [Range(minimum: 20000, maximum: 20000, ErrorMessage = "Категория файла недопустима. Допустимые: 20000")] int idCategory, CancellationToken cancellationToken) { - var helpPage = await helpPageRepository.GetOrDefaultByUrlPageAndIdCategoryAsync(urlPage, + var helpPage = await helpPageRepository.GetOrDefaultByUrlPageAndIdCategoryAsync(key, idCategory, cancellationToken); From 64de85361a66b5ca907e040daad1e5bb60c06e99 Mon Sep 17 00:00:00 2001 From: ngfrolov Date: Tue, 18 Jul 2023 16:45:11 +0500 Subject: [PATCH 6/7] =?UTF-8?q?HelpPageRepository.=20=D0=94=D0=BE=D0=BF?= =?UTF-8?q?=D0=B5=D1=80=D0=B5=D0=B8=D0=BC=D0=B5=D0=BD=D0=BE=D0=B2=D0=B0?= =?UTF-8?q?=D0=BB=20urlPage=20->key?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AsbCloudApp/Repositories/IHelpPageRepository.cs | 8 ++++---- AsbCloudInfrastructure/Repository/HelpPageRepository.cs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/AsbCloudApp/Repositories/IHelpPageRepository.cs b/AsbCloudApp/Repositories/IHelpPageRepository.cs index 4864d2cf..82dd96a4 100644 --- a/AsbCloudApp/Repositories/IHelpPageRepository.cs +++ b/AsbCloudApp/Repositories/IHelpPageRepository.cs @@ -13,22 +13,22 @@ public interface IHelpPageRepository : ICrudRepository /// /// Получение справки по url страницы и id категории /// - /// + /// /// /// /// - Task GetOrDefaultByUrlPageAndIdCategoryAsync(string urlPage, + Task GetOrDefaultByUrlPageAndIdCategoryAsync(string key, int idCategory, CancellationToken cancellationToken); /// /// Проверяет наличие справки для страницы /// - /// + /// /// /// /// - Task IsExistingAsync(string urlPage, + Task IsExistingAsync(string key, int idCategory, CancellationToken cancellationToken); } diff --git a/AsbCloudInfrastructure/Repository/HelpPageRepository.cs b/AsbCloudInfrastructure/Repository/HelpPageRepository.cs index bf1cbbf3..5742511f 100644 --- a/AsbCloudInfrastructure/Repository/HelpPageRepository.cs +++ b/AsbCloudInfrastructure/Repository/HelpPageRepository.cs @@ -16,13 +16,13 @@ public class HelpPageRepository : CrudRepositoryBase, { } - public async Task GetOrDefaultByUrlPageAndIdCategoryAsync(string urlPage, + public async Task GetOrDefaultByUrlPageAndIdCategoryAsync(string key, int idCategory, CancellationToken cancellationToken) { var helpPage = await dbSet.AsNoTracking() .SingleOrDefaultAsync(x => - x.UrlPage == urlPage && + x.UrlPage == key && x.IdCategory == idCategory, cancellationToken); @@ -32,8 +32,8 @@ public class HelpPageRepository : CrudRepositoryBase, return helpPage.Adapt(); } - public Task IsExistingAsync(string urlPage, int idCategory, CancellationToken cancellationToken) => - dbContext.HelpPages.AnyAsync(h => h.UrlPage == urlPage && + public Task IsExistingAsync(string key, int idCategory, CancellationToken cancellationToken) => + dbContext.HelpPages.AnyAsync(h => h.UrlPage == key && h.IdCategory == idCategory, cancellationToken); } From 4606bcf9b29a208dbceef9faeba350c1a501e007 Mon Sep 17 00:00:00 2001 From: ngfrolov Date: Tue, 18 Jul 2023 16:51:55 +0500 Subject: [PATCH 7/7] =?UTF-8?q?HelpPageController.=20=D0=9E=D0=BF=D0=B8?= =?UTF-8?q?=D1=81=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=BF=D0=B0=D1=80=D0=B0=D0=BC?= =?UTF-8?q?=D0=B5=D1=82=D1=80=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AsbCloudWebApi/Controllers/HelpPageController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AsbCloudWebApi/Controllers/HelpPageController.cs b/AsbCloudWebApi/Controllers/HelpPageController.cs index 538ac31e..c3a538a1 100644 --- a/AsbCloudWebApi/Controllers/HelpPageController.cs +++ b/AsbCloudWebApi/Controllers/HelpPageController.cs @@ -35,7 +35,7 @@ public class HelpPageController : ControllerBase /// /// Загрузка файла справки /// - /// Url страницы + /// Ключ страницы /// Id категории файла. Допустимое значение параметра: 20000 /// Файл справки /// Токен для отмены задачи @@ -72,7 +72,7 @@ public class HelpPageController : ControllerBase /// /// Получение файла справки /// - /// Url страницы + /// Ключ страницы /// Id категории файла. Допустимое значение параметра: 20000 /// Токен для отмены задачи /// @@ -102,7 +102,7 @@ public class HelpPageController : ControllerBase /// /// Проверяет наличие справки для страницы /// - /// Url страницы + /// Ключ страницы /// Id категории файла. Допустимое значение параметра: 20000 /// ///