|
|
|
@ -1,6 +1,8 @@ |
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Threading; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using MongoDB.Driver; |
|
|
|
using MongoDB.Driver.Linq; |
|
|
|
using Volo.Abp.Domain.Repositories.MongoDB; |
|
|
|
using Volo.Abp.MongoDB; |
|
|
|
@ -15,6 +17,11 @@ namespace Volo.Docs.Documents |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
public async Task<List<Document>> GetListByProjectId(Guid projectId, CancellationToken cancellationToken = default) |
|
|
|
{ |
|
|
|
return await GetMongoQueryable().Where(d => d.ProjectId == projectId).ToListAsync(cancellationToken); |
|
|
|
} |
|
|
|
|
|
|
|
public async Task<Document> FindAsync(Guid projectId, string name, string languageCode, string version, |
|
|
|
bool includeDetails = true, |
|
|
|
CancellationToken cancellationToken = default) |
|
|
|
|