Merge branch 'develop' into working

This commit is contained in:
Suphonchai Phoonsawat 2023-09-11 16:36:48 +07:00
commit d0c93b1d96
4 changed files with 5 additions and 1 deletions

View file

@ -51,6 +51,7 @@ namespace BMA.EHR.Application.Repositories.MessageQueue
.OrderByDescending(x => x.ReceiveDate) .OrderByDescending(x => x.ReceiveDate)
.Select(x => new InboxResponse .Select(x => new InboxResponse
{ {
Id = x.Id,
Subject = x.Subject, Subject = x.Subject,
Body = x.Body, Body = x.Body,
ReceiverUserId = x.ReceiverUserId, ReceiverUserId = x.ReceiverUserId,

View file

@ -51,6 +51,7 @@ namespace BMA.EHR.Application.Repositories.MessageQueue
.OrderByDescending(x => x.ReceiveDate) .OrderByDescending(x => x.ReceiveDate)
.Select(x => new NotificationResponse .Select(x => new NotificationResponse
{ {
Id = x.Id,
Body = x.Body, Body = x.Body,
ReceiverUserId = x.ReceiverUserId, ReceiverUserId = x.ReceiverUserId,
IsOpen = x.IsOpen, IsOpen = x.IsOpen,

View file

@ -1,7 +1,8 @@
namespace BMA.EHR.Application.Responses.Messages namespace BMA.EHR.Application.Responses.Messages
{ {
public class InboxResponse public class InboxResponse
{ {
public Guid Id { get; set; }
public string Subject { get; set; } = string.Empty; public string Subject { get; set; } = string.Empty;
public string Body { get; set; } = string.Empty; public string Body { get; set; } = string.Empty;

View file

@ -2,6 +2,7 @@
{ {
public class NotificationResponse public class NotificationResponse
{ {
public Guid Id { get; set; }
public string Body { get; set; } = string.Empty; public string Body { get; set; } = string.Empty;
public Guid ReceiverUserId { get; set; } = Guid.Empty; public Guid ReceiverUserId { get; set; } = Guid.Empty;