From e5874a8cbab1deb99499f07daed5da737085f66a Mon Sep 17 00:00:00 2001 From: Olga Nemt Date: Thu, 17 Oct 2024 15:47:23 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=B8=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=BA=D0=BE=D0=BD?= =?UTF-8?q?=D1=82=D1=80=D0=BE=D0=BB=D0=BB=D0=B5=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...roller.cs => DrillingQualityController.cs} | 30 +++++-------------- 1 file changed, 7 insertions(+), 23 deletions(-) rename AsbCloudWebApi/Controllers/{ServiceOperationController.cs => DrillingQualityController.cs} (59%) diff --git a/AsbCloudWebApi/Controllers/ServiceOperationController.cs b/AsbCloudWebApi/Controllers/DrillingQualityController.cs similarity index 59% rename from AsbCloudWebApi/Controllers/ServiceOperationController.cs rename to AsbCloudWebApi/Controllers/DrillingQualityController.cs index 8221cd8f..9f4470f1 100644 --- a/AsbCloudWebApi/Controllers/ServiceOperationController.cs +++ b/AsbCloudWebApi/Controllers/DrillingQualityController.cs @@ -1,43 +1,27 @@ using AsbCloudApp.Data; +using AsbCloudApp.Repositories; +using AsbCloudApp.Requests; using AsbCloudApp.Services; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; using System.Threading; using System.Threading.Tasks; -using AsbCloudApp.Services.WellReport; -using Microsoft.AspNetCore.Http; -using System; -using AsbCloudApp.Repositories; -using System.Linq; -using AsbCloudApp.Requests; -using AsbCloudInfrastructure.Services; namespace AsbCloudWebApi.Controllers; /// -/// +/// Контроллер для построения страницы "Качество" /// [Route("api/[controller]")] [ApiController] -//[Authorize] -public class ServiceOperationController : ControllerBase +[Authorize] +public class DrillingQualityController : ControllerBase { - private readonly IWellService wellService; - private readonly IDataSaubStatRepository dataSaubStatRepository; - private readonly ITelemetryService telemetryService; private readonly IDataSaubStatDrillingQualityService dataSaubStatDrillingQualityService; - public ServiceOperationController( - IWellService wellService, - ITelemetryService telemetryService, - IDataSaubStatDrillingQualityService dataSaubStatDrillingQualityService, - IDataSaubStatRepository dataSaubStatRepository) - { - this.wellService = wellService; - this.dataSaubStatRepository = dataSaubStatRepository; - this.telemetryService = telemetryService; + public DrillingQualityController(IDataSaubStatDrillingQualityService dataSaubStatDrillingQualityService) + { this.dataSaubStatDrillingQualityService = dataSaubStatDrillingQualityService; }