123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using System.Collections.Generic;
- using System.Threading.Tasks;
- using GxPress.Request.Reply;
- using GxPress.Result.Reply;
- using GxPress.Service.Interface.Reply;
- using System.Linq;
- using GxPress.Repository.Interface.Analyze;
- namespace GxPress.Service.Implement.Reply
- {
-
-
-
- public partial class ReplyService : IReplyService
- {
- private readonly IAnalyzeRepository analyzeRepository;
- public ReplyService(IAnalyzeRepository analyzeRepository)
- {
- this.analyzeRepository = analyzeRepository;
- }
-
-
-
-
-
- public async Task<IEnumerable<ReplyResult>> GetReplyResults(ReplyRequest request)
- {
- var result = new List<ReplyResult>();
-
- result.AddRange(await GetReplyNoteOrTopicResults(request));
-
- result.AddRange(await GetReplyGroupTopicResults(request));
- if (request.TypeValue == 0)
- result.AddRange(await GetReceiptCommentResult(request));
- else
- result.AddRange(await GetMyReceiptCommentResult(request));
-
- result.AddRange(await GetReplyNoticeTopicResults(request));
- var data = result.OrderByDescending(n => n.CreatedDate);
- return data;
- }
- }
- }
|