mirror of
https://github.com/Shchoholiev/shopping-assistant-api.git
synced 2025-04-03 16:19:46 +00:00
- Change OpenAI prompt - Update logic OpenAI response handling - Start refactoring of SearchProductAsync() - Add GetWishlistMessagesAsync() to MessagesRepository to retrieve all messages for wishlist
13 lines
495 B
C#
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);
|
|
}
|