mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.7 KiB
50 lines
1.7 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using JetBrains.Annotations;
|
|
using Volo.Abp.Domain.Repositories;
|
|
|
|
namespace Volo.CmsKit.Comments
|
|
{
|
|
public interface ICommentRepository : IBasicRepository<Comment, Guid>
|
|
{
|
|
Task<CommentWithAuthorQueryResultItem> GetWithAuthorAsync(Guid id, CancellationToken cancellationToken = default);
|
|
|
|
Task<List<CommentWithAuthorQueryResultItem>> GetListAsync(
|
|
string filter = null,
|
|
string entityType = null,
|
|
string entityId = null,
|
|
Guid? repliedCommentId = null,
|
|
Guid? creatorId = null,
|
|
DateTime? creationStartDate = null,
|
|
DateTime? creationEndDate = null,
|
|
string sorting = null,
|
|
int maxResultCount = int.MaxValue,
|
|
int skipCount = 0,
|
|
CancellationToken cancellationToken = default
|
|
);
|
|
|
|
Task<long> GetCountAsync(
|
|
string text = null,
|
|
string entityType = null,
|
|
string entityId = null,
|
|
Guid? repliedCommentId = null,
|
|
Guid? creatorId = null,
|
|
DateTime? creationStartDate = null,
|
|
DateTime? creationEndDate = null,
|
|
CancellationToken cancellationToken = default
|
|
);
|
|
|
|
Task<List<CommentWithAuthorQueryResultItem>> GetListWithAuthorsAsync(
|
|
[NotNull] string entityType,
|
|
[NotNull] string entityId,
|
|
CancellationToken cancellationToken = default
|
|
);
|
|
|
|
Task DeleteWithRepliesAsync(
|
|
Comment comment,
|
|
CancellationToken cancellationToken = default
|
|
);
|
|
}
|
|
}
|
|
|