no message

This commit is contained in:
kittapath 2024-10-29 17:48:41 +07:00
parent 248d400666
commit 6f3d6f9d72
12 changed files with 19409 additions and 75 deletions

View file

@ -121,6 +121,17 @@ namespace BMA.EHR.Placement.Service.Controllers
return Success();
}
[HttpPost("email")]
public async Task<ActionResult<ResponseObject>> SendEmail([FromBody] SendEmailRequest req)
{
await _repositoryNoti.PushEmailAsync(
req.Subject,
req.Body,
req.Email
);
return Success();
}
[HttpPost("profiles")]
public async Task<ActionResult<ResponseObject>> UpdatePropertyByUserProfiles([FromBody] NotisRequest req)
{

View file

@ -605,7 +605,7 @@ namespace BMA.EHR.Placement.Service.Controllers
var _res = await client.PostAsJsonAsync(apiUrlOrg, new
{
refId = placementTransfer.Id,
sysName = "PLACEMENT_TRANSFER",
sysName = "SYS_TRANSFER_REQ",
posLevelName = placementTransfer.posLevelNameOld,
posTypeName = placementTransfer.posTypeNameOld,
});
@ -873,7 +873,8 @@ namespace BMA.EHR.Placement.Service.Controllers
{
result.Add(r);
string? _null = null;
result.Add(new {
result.Add(new
{
No = _null,
FullName = r.RemarkHorizontal,
OldOc = _null,

View file

@ -0,0 +1,12 @@
using BMA.EHR.Domain.Models.MetaData;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Placement.Service.Requests
{
public class SendEmailRequest
{
public string Subject { get; set; }
public string Body { get; set; }
public string Email { get; set; }
}
}