เพิ่มid noti

This commit is contained in:
Kittapath 2023-09-11 15:45:31 +07:00
parent e91025aece
commit 8f2c9841ef
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)
.Select(x => new InboxResponse
{
Id = x.Id,
Subject = x.Subject,
Body = x.Body,
ReceiverUserId = x.ReceiverUserId,

View file

@ -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,

View file

@ -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;

View file

@ -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;