features/add-authors-table #17

Merged
jtom38 merged 5 commits from features/add-authors-table into main 2023-08-04 23:09:45 -07:00
2 changed files with 7 additions and 13 deletions
Showing only changes of commit 751bbd3a7b - Show all commits

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();
}