From 5d73e7f2b4e96e23980a5716783bf649605575d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9E=D0=BB=D1=8F=20=D0=91=D0=B8=D0=B7=D1=8E=D0=BA=D0=BE?= =?UTF-8?q?=D0=B2=D0=B0?= Date: Thu, 12 Dec 2024 13:03:57 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BD=D1=8B=20unusing?= =?UTF-8?q?=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Persistence/API/IDictionaryElementApi.cs | 45 ------------- Persistence/API/ITableDataApi.cs | 19 ------ Persistence/Models/UserDto.cs | 63 ------------------- .../Repositories/ITableDataRepository.cs | 19 ------ .../ITimeSeriesDataObserverService.cs | 5 -- .../Services/TimeSeriesDataObserverService.cs | 4 -- 6 files changed, 155 deletions(-) delete mode 100644 Persistence/API/IDictionaryElementApi.cs delete mode 100644 Persistence/API/ITableDataApi.cs delete mode 100644 Persistence/Models/UserDto.cs delete mode 100644 Persistence/Repositories/ITableDataRepository.cs delete mode 100644 Persistence/Services/ITimeSeriesDataObserverService.cs delete mode 100644 Persistence/Services/TimeSeriesDataObserverService.cs diff --git a/Persistence/API/IDictionaryElementApi.cs b/Persistence/API/IDictionaryElementApi.cs deleted file mode 100644 index fac7870..0000000 --- a/Persistence/API/IDictionaryElementApi.cs +++ /dev/null @@ -1,45 +0,0 @@ -using Microsoft.AspNetCore.Mvc; - -namespace Persistence.API; - -/// -/// Интерфейс для API, предназначенного для работы с элементами справочников -/// -public interface IDictionaryElementApi where TDto : class, new() -{ - /// - /// Получить все данные справочника - /// - /// ключ справочника - /// - /// - Task>> Get(Guid dictionaryKey, CancellationToken token); - - /// - /// Добавить элемент в справочник - /// - /// ключ справочника - /// - /// - /// - Task> Add(Guid dictionaryKey, TDto dto, CancellationToken token); - - /// - /// Изменить одну запись - /// - /// ключ справочника - /// ключ элемента в справочнике - /// - /// - /// - Task> Update(Guid dictionaryKey, Guid dictionaryElementKey, TDto dto, CancellationToken token); - - /// - /// Удалить одну запись - /// - /// ключ справочника - /// ключ элемента в справочнике - /// - /// - Task> Delete(Guid dictionaryKey, Guid dictionaryElementKey, CancellationToken token); -} diff --git a/Persistence/API/ITableDataApi.cs b/Persistence/API/ITableDataApi.cs deleted file mode 100644 index e5611a4..0000000 --- a/Persistence/API/ITableDataApi.cs +++ /dev/null @@ -1,19 +0,0 @@ -using Microsoft.AspNetCore.Mvc; -using Persistence.Models; -using Persistence.Models.Requests; - -namespace Persistence.API; - -/// Интерфейс для API, предназначенного для работы с табличными данными -public interface ITableDataApi - where TDto : class, new() - where TRequest : PaginationRequest -{ - /// - /// Получить страницу списка объектов - /// - /// параметры фильтрации - /// - /// - Task>> GetPage(TRequest request, CancellationToken token); -} diff --git a/Persistence/Models/UserDto.cs b/Persistence/Models/UserDto.cs deleted file mode 100644 index cd1c192..0000000 --- a/Persistence/Models/UserDto.cs +++ /dev/null @@ -1,63 +0,0 @@ -namespace Persistence.Models; - -/// -/// Модель, описывающая пользователя -/// -public class UserDto -{ - /// - public int Id { get; set; } - - /// - /// логин - /// - public string Login { get; set; } = null!; - - /// - /// Имя - /// - public string? Name { get; set; } - - /// - /// Фамилия - /// - public string? Surname { get; set; } - - /// - /// Отчество - /// - public string? Patronymic { get; set; } - - /// - /// Email - /// - public string Email { get; set; } = null!; - - /// - /// Phone - /// - public string? Phone { get; set; } - - /// - /// Должность - /// - public string? Position { get; set; } - - /// - /// Id компании - /// - public int IdCompany { get; set; } - - /// - /// Id состояния пользователя - /// 0 - не активен, - /// 1 - активен, - /// 2 - заблокирован - /// - public short IdState { get; set; } - - /// - /// Получение отображаемого имени - /// - /// -} diff --git a/Persistence/Repositories/ITableDataRepository.cs b/Persistence/Repositories/ITableDataRepository.cs deleted file mode 100644 index 0ca1715..0000000 --- a/Persistence/Repositories/ITableDataRepository.cs +++ /dev/null @@ -1,19 +0,0 @@ -using Persistence.Models.Requests; - -namespace Persistence.Repositories; - -/// -/// Интерфейс по работе с табличными данными -/// -public interface ITableDataRepository - where TDto : class, new() - where TRequest : PaginationRequest -{ - /// - /// Получить страницу списка объектов - /// - /// параметры фильтрации - /// - /// - Task> Get(TRequest request, CancellationToken token); -} diff --git a/Persistence/Services/ITimeSeriesDataObserverService.cs b/Persistence/Services/ITimeSeriesDataObserverService.cs deleted file mode 100644 index 12994bb..0000000 --- a/Persistence/Services/ITimeSeriesDataObserverService.cs +++ /dev/null @@ -1,5 +0,0 @@ -namespace Persistence.Services; - -public interface ITimeSeriesDataObserverService -{ -} diff --git a/Persistence/Services/TimeSeriesDataObserverService.cs b/Persistence/Services/TimeSeriesDataObserverService.cs deleted file mode 100644 index 7785928..0000000 --- a/Persistence/Services/TimeSeriesDataObserverService.cs +++ /dev/null @@ -1,4 +0,0 @@ -namespace Persistence.Services; -public abstract class TimeSeriesDataObserverService : ITimeSeriesDataObserverService -{ -}