diff --git a/Src/Dlhis.Basic/Organization/Controllers/GainfosController.cs b/Src/Dlhis.Basic/Organization/Controllers/GainfosController.cs
index ba5b825f..b7d8f2d3 100644
--- a/Src/Dlhis.Basic/Organization/Controllers/GainfosController.cs
+++ b/Src/Dlhis.Basic/Organization/Controllers/GainfosController.cs
@@ -130,7 +130,7 @@ public class GainfosController : ControllerBase
///
///
[HttpGet("face/{userCodes}")]
- public async Task> GetFaceByUserCodesAsync([FromQuery] List userCodes)
+ public async Task> GetFaceByUserCodesAsync( List userCodes)
{
return await _gainfoService.GetFaceByUserCodesAsync(userCodes);
}
diff --git a/Src/Dlhis.Basic/Organization/Services/IGainfoService.cs b/Src/Dlhis.Basic/Organization/Services/IGainfoService.cs
index dc895583..7db8ce6d 100644
--- a/Src/Dlhis.Basic/Organization/Services/IGainfoService.cs
+++ b/Src/Dlhis.Basic/Organization/Services/IGainfoService.cs
@@ -25,5 +25,5 @@ public interface IGainfoService : IScopeDependency
Task GetFaceByUserCodeAsync(string userCode);
- Task> GetFaceByUserCodesAsync(List userCodes);
+ Task> GetFaceByUserCodesAsync(List userCodes);
}
diff --git a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs
index 3eee0824..2b385b60 100644
--- a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs
+++ b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs
@@ -328,15 +328,16 @@ public class GainfoService : IGainfoService
return faceUrl + token;
});
}
- public async Task> GetFaceByUserCodesAsync(List userCodes)
+ public async Task> GetFaceByUserCodesAsync(List userCodes)
{
- var faces = new List();
+ var faceDictionary = new Dictionary();
foreach (var userCode in userCodes)
{
var faceUrl = await GetFaceByUserCodeAsync(userCode);
- faces.Add(faceUrl);
+ faceDictionary.Add(userCode, faceUrl);
}
- return faces;
+
+ return faceDictionary;
}
}