2024-12-16 15:38:46 +05:00
|
|
|
|
using DD.Persistence.Models;
|
2024-12-12 17:05:47 +05:00
|
|
|
|
using Refit;
|
|
|
|
|
|
2024-12-16 15:38:46 +05:00
|
|
|
|
namespace DD.Persistence.Client.Clients.Interfaces;
|
2024-12-12 17:05:47 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Клиент для работы с системами
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IDataSourceSystemClient : IDisposable
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получить системы
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<IEnumerable<DataSourceSystemDto>> Get(CancellationToken token);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Добавить систему
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="dataSourceSystemDto"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task Add(DataSourceSystemDto dataSourceSystemDto, CancellationToken token);
|
|
|
|
|
}
|