From ba9211ef9e31ebd31362496faa48cc054a707e76 Mon Sep 17 00:00:00 2001
From: cheche <717840555@qq.com>
Date: Wed, 17 Jan 2024 14:10:30 +0800
Subject: [PATCH] =?UTF-8?q?fix=20=E6=89=B9=E9=87=8F=E8=8E=B7=E5=8F=96?=
=?UTF-8?q?=E4=BA=BA=E8=84=B8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Organization/Controllers/GainfosController.cs | 2 +-
Src/Dlhis.Basic/Organization/Services/IGainfoService.cs | 2 +-
.../Organization/Services/Implements/GainfoService.cs | 9 +++++----
3 files changed, 7 insertions(+), 6 deletions(-)
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;
}
}