添加项目文件。
This commit is contained in:
17
common/Tnb.Common/Captcha/General/IGeneralCaptcha.cs
Normal file
17
common/Tnb.Common/Captcha/General/IGeneralCaptcha.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
namespace JNPF.Common.Captcha.General;
|
||||
|
||||
/// <summary>
|
||||
/// 常规验证码.
|
||||
/// </summary>
|
||||
public interface IGeneralCaptcha
|
||||
{
|
||||
/// <summary>
|
||||
/// 创建验证码图片.
|
||||
/// </summary>
|
||||
/// <param name="timestamp">时间戳.</param>
|
||||
/// <param name="width">宽度.</param>
|
||||
/// <param name="height">高度.</param>
|
||||
/// <param name="length">长度.</param>
|
||||
/// <returns></returns>
|
||||
Task<byte[]> CreateCaptchaImage(string timestamp, int width, int height, int length = 4);
|
||||
}
|
||||
Reference in New Issue
Block a user