เพิ่มลูกจ้างลงทะเบียนเครื่องราช

This commit is contained in:
moss 2025-05-27 10:46:44 +07:00
parent c832465e71
commit b1380d4a2f
3 changed files with 104 additions and 35 deletions

View file

@ -1051,6 +1051,25 @@ namespace BMA.EHR.Application.Repositories
}
public async Task PostProfileEmpInsigniaAsync(PostProfileInsigniaDto body, string? accessToken)
{
try
{
var apiPath = $"{_configuration["API"]}/org/profile-employee/insignia";
var apiKey = _configuration["API_KEY"];
var profiles = new List<SearchProfileDto>();
var apiResult = await PostExternalAPIBooleanAsync(apiPath, accessToken ?? "", body, apiKey);
}
catch
{
throw;
}
}
public async Task<GetIsOfficerDto> GetIsOfficerRootAsync(string? accessToken, string sys)
{
try

View file

@ -2,7 +2,8 @@
{
public class PostProfileInsigniaDto
{
public Guid profileId { get; set; }
public Guid? profileId { get; set; }
public Guid? profileEmployeeId { get; set; }
public int year { get; set; } = 0;