shopping-assistant-api/ShoppingAssistantApi.Application/IRepositories/IMessagerepository.cs
shchoholiev 68ab565800 SA-197 Add suggestions to product search
- Change OpenAI prompt
- Update logic OpenAI response handling
- Start refactoring of  SearchProductAsync()
- Add GetWishlistMessagesAsync() to MessagesRepository to retrieve all messages for wishlist
2023-12-11 00:49:08 +00:00

13 lines
495 B
C#

using System.Linq.Expressions;
using MongoDB.Bson;
using ShoppingAssistantApi.Domain.Entities;
namespace ShoppingAssistantApi.Application.IRepositories;
public interface IMessagesRepository : IBaseRepository<Message>
{
Task<List<Message>> GetPageStartingFromEndAsync(int pageNumber, int pageSize, Expression<Func<Message, bool>> predicate, CancellationToken cancellationToken);
Task<List<Message>> GetWishlistMessagesAsync(ObjectId wishlistId, CancellationToken cancellationToken);
}