no message
This commit is contained in:
parent
a583dc7c42
commit
e989d6c584
13 changed files with 201 additions and 112 deletions
|
|
@ -63,13 +63,14 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
public async Task<ActionResult<ResponseObject>> UpdatePropertyByUser([FromBody] NotiRequest req)
|
||||
{
|
||||
await _repositoryNoti.PushNotificationAsync(
|
||||
Guid.Parse(req.ReceiverUserId),
|
||||
Guid.Parse(req.ReceiverUserId),
|
||||
req.Subject,
|
||||
req.Body,
|
||||
req.Payload,
|
||||
"",
|
||||
req.IsSendInbox,
|
||||
req.IsSendMail
|
||||
);
|
||||
);
|
||||
|
||||
return Success();
|
||||
}
|
||||
|
|
@ -93,6 +94,7 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
req.Subject,
|
||||
req.Body,
|
||||
req.Payload,
|
||||
"",
|
||||
req.IsSendInbox,
|
||||
req.IsSendMail
|
||||
);
|
||||
|
|
@ -111,6 +113,7 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
req.Subject,
|
||||
req.Body,
|
||||
req.Payload,
|
||||
"",
|
||||
req.IsSendInbox,
|
||||
req.IsSendMail
|
||||
);
|
||||
|
|
@ -121,8 +124,8 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
[HttpPost("profiles")]
|
||||
public async Task<ActionResult<ResponseObject>> UpdatePropertyByUserProfiles([FromBody] NotisRequest req)
|
||||
{
|
||||
await _repositoryNoti.PushNotificationsAsync(
|
||||
req.ReceiverUserIds.Select(x => Guid.Parse(x)).ToArray(),
|
||||
await _repositoryNoti.PushNotificationsLinkAsync(
|
||||
req.ReceiverUserIds,
|
||||
req.Subject,
|
||||
req.Body,
|
||||
req.Payload,
|
||||
|
|
@ -157,9 +160,10 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
req.Subject,
|
||||
req.Body,
|
||||
req.Payload,
|
||||
"",
|
||||
req.IsSendInbox,
|
||||
req.IsSendMail
|
||||
);
|
||||
);
|
||||
}
|
||||
return Success();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1674,6 +1674,7 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
{
|
||||
profileId = string.Empty,
|
||||
date = r.commandAffectDate,
|
||||
commandId = r.commandId,
|
||||
amount = r.amount,
|
||||
positionSalaryAmount = r.positionSalaryAmount,
|
||||
mouthSalaryAmount = r.mouthSalaryAmount,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
using BMA.EHR.Domain.Models.MetaData;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using static BMA.EHR.Application.Repositories.MessageQueue.NotificationRepository;
|
||||
|
||||
namespace BMA.EHR.Placement.Service.Requests
|
||||
{
|
||||
|
|
@ -8,7 +9,8 @@ namespace BMA.EHR.Placement.Service.Requests
|
|||
public string Subject { get; set; }
|
||||
public string Body { get; set; }
|
||||
public string Payload { get; set; }
|
||||
public string[] ReceiverUserIds { get; set; }
|
||||
// public string NotiLink { get; set; }
|
||||
public NotisLinkRequest[] ReceiverUserIds { get; set; }
|
||||
public bool IsSendMail { get; set; }
|
||||
public bool IsSendInbox { get; set; }
|
||||
public bool IsSendNotification { get; set; }
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ namespace BMA.EHR.Placement.Service.Requests
|
|||
public string? refId { get; set; }
|
||||
public DateTime commandAffectDate { get; set; }
|
||||
public string? commandNo { get; set; }
|
||||
public string? commandId { get; set; }
|
||||
public int commandYear { get; set; }
|
||||
public string? templateDoc { get; set; }
|
||||
public double? amount { get; set; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue