IAuthorTable.cs was added

This commit is contained in:
James Tombleson 2023-08-04 23:05:49 -07:00
parent 2aa14548aa
commit 751bbd3a7b
2 changed files with 7 additions and 13 deletions

View File

@ -4,8 +4,11 @@ namespace Newsbot.Collector.Domain.Interfaces;
public interface IAuthorTable public interface IAuthorTable
{ {
AuthorEntity New(AuthorEntity entity); Task<AuthorEntity> NewAsync(AuthorEntity entity);
List<AuthorEntity> ListBySourceId(Guid sourceId);
int TotalPosts(Guid id); Task<AuthorEntity> CreateIfMissingAsync(AuthorEntity entity);
AuthorEntity? GetBySourceIdAndName(Guid sourceId, string name); Task<List<AuthorEntity>> ListBySourceIdAsync(Guid sourceId);
Task<int> TotalPostsAsync(Guid id);
Task<AuthorEntity?> GetBySourceIdAndNameAsync(Guid sourceId, string name);
Task<AuthorEntity?> GetById(Guid id);
} }

View File

@ -1,9 +0,0 @@
using Newsbot.Collector.Domain.Models;
namespace Newsbot.Collector.Domain.Interfaces;
///
public interface ICollector : IHangfireJob
{
List<ArticlesModel> Collect();
}