2024-02-25 18:21:01 +03:30
|
|
|
|
using NetinaShop.Domain.Dtos.ResponseDtos;
|
|
|
|
|
|
|
|
|
|
|
|
namespace NetinaShop.Infrastructure.Services;
|
|
|
|
|
|
|
|
|
|
|
|
public class ExternalFilesService : IExternalFilesService
|
|
|
|
|
|
{
|
|
|
|
|
|
private readonly IRestApiWrapper _restApiWrapper;
|
|
|
|
|
|
private readonly SiteSettings _siteSetting;
|
|
|
|
|
|
|
|
|
|
|
|
public ExternalFilesService(IRestApiWrapper restApiWrapper,IOptionsSnapshot<SiteSettings> snapshot)
|
|
|
|
|
|
{
|
|
|
|
|
|
_restApiWrapper = restApiWrapper;
|
|
|
|
|
|
_siteSetting = snapshot.Value;
|
|
|
|
|
|
}
|
2024-04-13 01:26:10 +03:30
|
|
|
|
public async Task<AdminChangeLogResponseDto> GetAdminChangeLogAsync(CancellationToken cancellationToken = default)
|
2024-02-25 18:21:01 +03:30
|
|
|
|
{
|
2024-04-13 01:26:10 +03:30
|
|
|
|
var changeLog = await _restApiWrapper.FileRestApi(_siteSetting.AdminPanelBaseUrl).GetAdminChangeLog();
|
|
|
|
|
|
return changeLog;
|
2024-02-25 18:21:01 +03:30
|
|
|
|
}
|
|
|
|
|
|
}
|