2023-07-29 10:02:43 -07:00
|
|
|
using Newsbot.Collector.Domain.Entities;
|
|
|
|
|
|
|
|
namespace Newsbot.Collector.Domain.Interfaces;
|
|
|
|
|
|
|
|
public interface IAuthorTable
|
|
|
|
{
|
2023-08-04 23:05:49 -07:00
|
|
|
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);
|
2023-07-29 10:02:43 -07:00
|
|
|
}
|