live-forum/server/webapi/LiveForum/LiveForum.IService/RealName/IRealNameVerifyProvider.cs
2026-03-24 11:27:37 +08:00

25 lines
764 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using LiveForum.Model.Dto.RealName;
namespace LiveForum.IService.RealName
{
/// <summary>
/// 实名认证服务商接口(策略模式)
/// 不同服务商(阿里云、腾讯云等)实现此接口
/// </summary>
public interface IRealNameVerifyProvider
{
/// <summary>
/// 服务商标识(如 aliyun、tencent
/// </summary>
string ProviderName { get; }
/// <summary>
/// 身份证二要素核验
/// </summary>
/// <param name="realName">真实姓名</param>
/// <param name="idCardNumber">身份证号码</param>
/// <returns>核验结果</returns>
Task<RealNameVerifyResult> VerifyAsync(string realName, string idCardNumber);
}
}