29 lines
822 B
C#
29 lines
822 B
C#
using Dlhis.InfoCheck.Api.Requests;
|
|
using Dlhis.InfoCheck.Api.Response;
|
|
using Kurisu.RemoteCall.Attributes;
|
|
|
|
namespace Dlhis.InfoCheck.Api;
|
|
|
|
/// <summary>
|
|
/// 信息检查
|
|
/// </summary>
|
|
[RequestResultHandler]
|
|
[EnableRemoteClient(Name = "infocheck-service", BaseUrl = "${InternalRequest:InfoCheckRequestUrl}")]
|
|
public interface IInfoCheckApi
|
|
{
|
|
/// <summary>
|
|
/// 检测人脸质量
|
|
/// </summary>
|
|
/// <param name="request"></param>
|
|
/// <returns></returns>
|
|
[Post("/api/face/detection")]
|
|
Task<List<string>> FaceDetectAsync(FaceDetectRequest request);
|
|
|
|
/// <summary>
|
|
/// 人脸对比
|
|
/// </summary>
|
|
/// <param name="request"></param>
|
|
/// <returns></returns>
|
|
[Post("/api/face/recognize")]
|
|
Task<FaceRecognizeResponse> FaceRecognizeAsync(FaceRecognizeRequest request);
|
|
} |