mirror of
https://github.com/Shchoholiev/shopping-assistant-api.git
synced 2025-04-04 16:49:36 +00:00
added file for services
This commit is contained in:
parent
f9dfb34e43
commit
504e675466
@ -0,0 +1,12 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using ShoppingAssistantApi.Application.Models.OpenAi;
|
||||
using ShoppingAssistantApi.Domain.Entities;
|
||||
|
||||
namespace ShoppingAssistantApi.Application.IServices;
|
||||
|
||||
public interface IProductService
|
||||
{
|
||||
Task<List<string>> StartNewSearchAndReturnWishlist(Message message, CancellationToken cancellationToken);
|
||||
|
||||
Task<List<string>> GetProductFromSearch(Message message, CancellationToken cancellationToken);
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using ShoppingAssistantApi.Application.IRepositories;
|
||||
using ShoppingAssistantApi.Application.IServices;
|
||||
using ShoppingAssistantApi.Domain.Entities;
|
||||
|
||||
namespace ShoppingAssistantApi.Infrastructure.Services;
|
||||
|
||||
public class ProductServices
|
||||
{
|
||||
/*private readonly IWishlistsRepository _wishlistsRepository;
|
||||
|
||||
private readonly IOpenAiService _openAiService;
|
||||
private readonly IProductService _productService;
|
||||
|
||||
public ProductServices(IOpenAiService openAiService, IProductService productService)
|
||||
{
|
||||
_openAiService = openAiService;
|
||||
_productService = productService;
|
||||
}
|
||||
|
||||
public async Task<Collection<string>> StartNewSearchAndReturnWishlist(Message message,
|
||||
CancellationToken cancellationToken)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public async Task<Collection<string>> GetProductFromSearch(Message message, CancellationToken cancellationToken)
|
||||
{
|
||||
return null;
|
||||
}*/
|
||||
}
|
Loading…
Reference in New Issue
Block a user