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.
77 lines
2.7 KiB
77 lines
2.7 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using Volo.Abp.Domain.Repositories;
|
|
|
|
namespace Volo.Docs.Documents
|
|
{
|
|
public interface IDocumentRepository : IBasicRepository<Document>
|
|
{
|
|
Task<List<DocumentWithoutDetails>> GetListWithoutDetailsByProjectId(Guid projectId, CancellationToken cancellationToken = default);
|
|
|
|
Task<List<Document>> GetListByProjectId(Guid projectId, CancellationToken cancellationToken = default);
|
|
|
|
Task<Document> FindAsync(Guid projectId,
|
|
string name,
|
|
string languageCode,
|
|
string version,
|
|
bool includeDetails = true,
|
|
CancellationToken cancellationToken = default);
|
|
|
|
Task DeleteAsync(Guid projectId,
|
|
string name,
|
|
string languageCode,
|
|
string version,
|
|
bool autoSave = false,
|
|
CancellationToken cancellationToken = default);
|
|
|
|
Task<List<Document>> GetListAsync(
|
|
Guid? projectId,
|
|
string version,
|
|
string name,
|
|
CancellationToken cancellationToken = default);
|
|
|
|
Task<List<DocumentWithoutContent>> GetAllAsync(
|
|
Guid? projectId,
|
|
string name,
|
|
string version,
|
|
string languageCode,
|
|
string fileName,
|
|
string format,
|
|
DateTime? creationTimeMin,
|
|
DateTime? creationTimeMax,
|
|
DateTime? lastUpdatedTimeMin,
|
|
DateTime? lastUpdatedTimeMax,
|
|
DateTime? lastSignificantUpdateTimeMin,
|
|
DateTime? lastSignificantUpdateTimeMax,
|
|
DateTime? lastCachedTimeMin,
|
|
DateTime? lastCachedTimeMax,
|
|
string sorting = null,
|
|
int maxResultCount = int.MaxValue,
|
|
int skipCount = 0,
|
|
CancellationToken cancellationToken = default);
|
|
|
|
Task<long> GetAllCountAsync(
|
|
Guid? projectId,
|
|
string name,
|
|
string version,
|
|
string languageCode,
|
|
string fileName,
|
|
string format,
|
|
DateTime? creationTimeMin,
|
|
DateTime? creationTimeMax,
|
|
DateTime? lastUpdatedTimeMin,
|
|
DateTime? lastUpdatedTimeMax,
|
|
DateTime? lastSignificantUpdateTimeMin,
|
|
DateTime? lastSignificantUpdateTimeMax,
|
|
DateTime? lastCachedTimeMin,
|
|
DateTime? lastCachedTimeMax,
|
|
string sorting = null,
|
|
int maxResultCount = int.MaxValue,
|
|
int skipCount = 0,
|
|
CancellationToken cancellationToken = default);
|
|
|
|
Task<Document> GetAsync(Guid id, CancellationToken cancellationToken = default);
|
|
}
|
|
}
|
|
|