feat(esppApi): EsppResultBase
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using Microsoft.Extensions.Logging;
|
||||
using PARR.EsppApi.Models;
|
||||
using PARR.EsppApi.Models.Query;
|
||||
using PARR.EsppApi.Services;
|
||||
using PARR.EsppApi.Settings;
|
||||
|
||||
@@ -18,7 +19,7 @@ namespace PARR.EsppApi
|
||||
this.espp = espp;
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<EsppOrder>> FindOrdersByPrefixAsync(string prefix)
|
||||
public async Task<EsppResultBase<IEnumerable<EsppOrder>>> FindOrdersByPrefixAsync(FindOrdersQuery query)
|
||||
{
|
||||
logger.LogInformation("Привет!");
|
||||
|
||||
@@ -26,7 +27,9 @@ namespace PARR.EsppApi
|
||||
var aaa = await espp.Get();
|
||||
logger.LogInformation($"asdasd: {aaa}");
|
||||
|
||||
return new List<EsppOrder>();
|
||||
var esppOrders = new List<EsppOrder>();
|
||||
|
||||
return new EsppResultBase<IEnumerable<EsppOrder>>(esppOrders, true);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user