|
@@ -58,13 +58,13 @@ namespace GxPress.Service.Implement.Note
|
|
|
IMiddleRepository middleRepository, IMapper mapper, IUserRepository userRepository,
|
|
|
IArticleRepository articleRepository, INoticeRepository noticeRepository,
|
|
|
IMissiveRepository missiveRepository, ITopicRepository topicRepository, IGroupRepository groupRepository,
|
|
|
- ICollectionRepository collectionRepository, ICommentRepository commentRepository,
|
|
|
- IVisitRepository visitRepository,
|
|
|
- IVisitService visitService,
|
|
|
- IFolderUserRepository folderUserRepository,
|
|
|
- IAnalyzeService analyzeService,
|
|
|
- IUserMiddleService userMiddleService,
|
|
|
- IRecordFolderRepository recordFolderRepository,
|
|
|
+ ICollectionRepository collectionRepository, ICommentRepository commentRepository,
|
|
|
+ IVisitRepository visitRepository,
|
|
|
+ IVisitService visitService,
|
|
|
+ IFolderUserRepository folderUserRepository,
|
|
|
+ IAnalyzeService analyzeService,
|
|
|
+ IUserMiddleService userMiddleService,
|
|
|
+ IRecordFolderRepository recordFolderRepository,
|
|
|
IMediaRepository mediaRepository)
|
|
|
{
|
|
|
_middleService = middleService;
|
|
@@ -235,6 +235,7 @@ namespace GxPress.Service.Implement.Note
|
|
|
public async Task<PagedList<NotePageListRequest>> NotePageListAsync(NoteSearchPageListRequest request)
|
|
|
{
|
|
|
var result = await _noteRepository.NotePageListAsync(request);
|
|
|
+ result.DraftCount = await _noteRepository.GetDraftCountAsync(request.UserId, request.TypeValue == 1);
|
|
|
if (request.FolderId > 0)
|
|
|
{
|
|
|
var middle = await _middleRepository.GetMiddleAsync(request.FolderId);
|