From 8f2c9841efff306f48f7ce225027713c6549aeb1 Mon Sep 17 00:00:00 2001 From: Kittapath Date: Mon, 11 Sep 2023 15:45:31 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1id?= =?UTF-8?q?=20noti?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Repositories/MessageQueue/InboxRepository.cs | 1 + .../Repositories/MessageQueue/NotificationRepository.cs | 1 + BMA.EHR.Application/Responses/Messages/InboxResponse.cs | 3 ++- BMA.EHR.Application/Responses/Messages/NotificationResponse.cs | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/BMA.EHR.Application/Repositories/MessageQueue/InboxRepository.cs b/BMA.EHR.Application/Repositories/MessageQueue/InboxRepository.cs index ff1a2d55..ef1852a5 100644 --- a/BMA.EHR.Application/Repositories/MessageQueue/InboxRepository.cs +++ b/BMA.EHR.Application/Repositories/MessageQueue/InboxRepository.cs @@ -51,6 +51,7 @@ namespace BMA.EHR.Application.Repositories.MessageQueue .OrderByDescending(x => x.ReceiveDate) .Select(x => new InboxResponse { + Id = x.Id, Subject = x.Subject, Body = x.Body, ReceiverUserId = x.ReceiverUserId, diff --git a/BMA.EHR.Application/Repositories/MessageQueue/NotificationRepository.cs b/BMA.EHR.Application/Repositories/MessageQueue/NotificationRepository.cs index 45fd0fb2..7489a43e 100644 --- a/BMA.EHR.Application/Repositories/MessageQueue/NotificationRepository.cs +++ b/BMA.EHR.Application/Repositories/MessageQueue/NotificationRepository.cs @@ -51,6 +51,7 @@ namespace BMA.EHR.Application.Repositories.MessageQueue .OrderByDescending(x => x.ReceiveDate) .Select(x => new NotificationResponse { + Id = x.Id, Body = x.Body, ReceiverUserId = x.ReceiverUserId, IsOpen = x.IsOpen, diff --git a/BMA.EHR.Application/Responses/Messages/InboxResponse.cs b/BMA.EHR.Application/Responses/Messages/InboxResponse.cs index 1652ff72..58aef4c9 100644 --- a/BMA.EHR.Application/Responses/Messages/InboxResponse.cs +++ b/BMA.EHR.Application/Responses/Messages/InboxResponse.cs @@ -1,7 +1,8 @@ namespace BMA.EHR.Application.Responses.Messages { public class InboxResponse - { + { + public Guid Id { get; set; } public string Subject { get; set; } = string.Empty; public string Body { get; set; } = string.Empty; diff --git a/BMA.EHR.Application/Responses/Messages/NotificationResponse.cs b/BMA.EHR.Application/Responses/Messages/NotificationResponse.cs index 013b24cf..89861d62 100644 --- a/BMA.EHR.Application/Responses/Messages/NotificationResponse.cs +++ b/BMA.EHR.Application/Responses/Messages/NotificationResponse.cs @@ -2,6 +2,7 @@ { public class NotificationResponse { + public Guid Id { get; set; } public string Body { get; set; } = string.Empty; public Guid ReceiverUserId { get; set; } = Guid.Empty;