feat(esppApi): Заготовка для api
This commit is contained in:
@@ -1,21 +1,33 @@
|
||||
using Microsoft.Extensions.Logging;
|
||||
using PARR.EsppApi.Models;
|
||||
using PARR.EsppApi.Services;
|
||||
using PARR.EsppApi.Settings;
|
||||
|
||||
namespace PARR.EsppApi
|
||||
{
|
||||
internal class EsppApiService : IEsppApiService
|
||||
{
|
||||
private readonly ILogger<EsppApiService> logger;
|
||||
private readonly EsppOrderSettings esppOrderSettings;
|
||||
private readonly Espp espp;
|
||||
|
||||
public EsppApiService(ILogger<EsppApiService> logger)
|
||||
public EsppApiService(ILogger<EsppApiService> logger, EsppOrderSettings esppOrderSettings, Espp espp)
|
||||
{
|
||||
this.logger = logger;
|
||||
this.esppOrderSettings = esppOrderSettings;
|
||||
this.espp = espp;
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<EsppOrder>> FindOrdersByPrefixAsync(string prefix)
|
||||
{
|
||||
logger.LogInformation("Привет!");
|
||||
throw new NotImplementedException();
|
||||
|
||||
// var url = esppOrderSettings.Url;
|
||||
var aaa = await espp.Get();
|
||||
logger.LogInformation($"asdasd: {aaa}");
|
||||
|
||||
return new List<EsppOrder>();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user