2024-08-09 21:55:16 +03:30
|
|
|
|
using Netina.Domain.Dtos.ResponseDtos;
|
2024-02-25 18:21:01 +03:30
|
|
|
|
|
2024-04-16 20:01:34 +03:30
|
|
|
|
namespace Netina.Infrastructure.Services;
|
2024-02-25 18:21:01 +03:30
|
|
|
|
|
2024-08-09 21:55:16 +03:30
|
|
|
|
public class ExternalFilesService(IRestApiWrapper restApiWrapper, IOptionsSnapshot<SiteSettings> snapshot)
|
|
|
|
|
|
: IExternalFilesService
|
2024-02-25 18:21:01 +03:30
|
|
|
|
{
|
2024-08-09 21:55:16 +03:30
|
|
|
|
private readonly SiteSettings _siteSetting = snapshot.Value;
|
2024-02-25 18:21:01 +03:30
|
|
|
|
|
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-08-09 21:55:16 +03:30
|
|
|
|
var changeLog = await restApiWrapper.FileRestApi(_siteSetting.AdminPanelBaseUrl).GetAdminChangeLog();
|
2024-04-13 01:26:10 +03:30
|
|
|
|
return changeLog;
|
2024-02-25 18:21:01 +03:30
|
|
|
|
}
|
|
|
|
|
|
}
|