fix #1462, #1476
Some checks failed
release-dev / release-dev (push) Failing after 13s

This commit is contained in:
Bright 2025-05-06 18:16:14 +07:00
parent 06a6019e97
commit ed0bde9780
7 changed files with 169 additions and 6 deletions

View file

@ -780,6 +780,29 @@ namespace BMA.EHR.Application.Repositories
}
}
public async Task<GetUserOCAllDto?> GetUserOCAll(Guid keycloakId, string? accessToken)
{
try
{
var apiPath = $"{_configuration["API"]}/org/dotnet/user-oc-all/{keycloakId}";
var apiKey = _configuration["API_KEY"];
var apiResult = await GetExternalAPIAsync(apiPath, accessToken ?? "", apiKey);
if (apiResult != null)
{
var raw = JsonConvert.DeserializeObject<GetUserOCAllResultDto>(apiResult);
return raw?.Result;
}
return null;
}
catch
{
throw;
}
}
public async Task<GetUserOCIdDto?> GetUserOC(Guid keycloakId, string? accessToken)
{
try