2023-06-22 08:04:18 -07:00
|
|
|
using Newsbot.Collector.Domain.Entities;
|
2023-02-19 21:39:03 -08:00
|
|
|
using Newsbot.Collector.Domain.Models;
|
|
|
|
|
|
|
|
namespace Newsbot.Collector.Domain.Interfaces;
|
|
|
|
|
|
|
|
public interface IArticlesRepository : ITableRepository
|
|
|
|
{
|
2023-06-22 08:04:18 -07:00
|
|
|
List<ArticlesEntity> List(int page, int count);
|
2023-04-10 22:59:13 -07:00
|
|
|
List<ArticlesModel> ListBySourceId(Guid id, int page = 0, int count = 25);
|
2023-02-19 21:39:03 -08:00
|
|
|
ArticlesModel GetById(Guid ID);
|
|
|
|
ArticlesModel GetByUrl(string url);
|
2023-06-22 08:04:18 -07:00
|
|
|
ArticlesEntity New(ArticlesEntity model);
|
2023-04-10 22:59:13 -07:00
|
|
|
void DeleteAllBySourceId(Guid sourceId);
|
2023-02-19 21:39:03 -08:00
|
|
|
}
|