IAuthorTable.cs was added
This commit is contained in:
parent
2aa14548aa
commit
751bbd3a7b
@ -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);
|
||||||
}
|
}
|
@ -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