features/add-authors-table #17
@ -4,8 +4,11 @@ namespace Newsbot.Collector.Domain.Interfaces;
|
||||
|
||||
public interface IAuthorTable
|
||||
{
|
||||
AuthorEntity New(AuthorEntity entity);
|
||||
List<AuthorEntity> ListBySourceId(Guid sourceId);
|
||||
int TotalPosts(Guid id);
|
||||
AuthorEntity? GetBySourceIdAndName(Guid sourceId, string name);
|
||||
Task<AuthorEntity> NewAsync(AuthorEntity entity);
|
||||
|
||||
Task<AuthorEntity> CreateIfMissingAsync(AuthorEntity entity);
|
||||
Task<List<AuthorEntity>> ListBySourceIdAsync(Guid sourceId);
|
||||
Task<int> TotalPostsAsync(Guid id);
|
||||
Task<AuthorEntity?> GetBySourceIdAndNameAsync(Guid sourceId, string name);
|
||||
Task<AuthorEntity?> GetById(Guid id);
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
using Newsbot.Collector.Domain.Models;
|
||||
|
||||
namespace Newsbot.Collector.Domain.Interfaces;
|
||||
|
||||
///
|
||||
public interface ICollector : IHangfireJob
|
||||
{
|
||||
List<ArticlesModel> Collect();
|
||||
}
|
Loading…
Reference in New Issue
Block a user