using System.Threading.Tasks;
namespace Znyc.Admin.Commons.VerificationCode
{
///
/// 验证码接口
///
public interface ICaptcha
{
///
/// 生成随机验证码
///
///
///
Task GenerateRandomCaptchaAsync(int codeLength = 4);
///
/// 生成验证码图片
///
/// 验证码
/// 宽为0将根据验证码长度自动匹配合适宽度
/// 高
///
Task GenerateCaptchaImageAsync(string captchaCode, int width = 0, int height = 30);
}
}