feat: 支持邮箱注册功能
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Yi.Framework.Rbac.Domain.Shared.Enums;
|
||||
|
||||
namespace Yi.Framework.Rbac.Domain.Shared.Caches
|
||||
{
|
||||
public class CaptchaEmailCacheItem
|
||||
{
|
||||
public CaptchaEmailCacheItem(string code)
|
||||
{
|
||||
Code = code;
|
||||
}
|
||||
|
||||
public string Code { get; set; }
|
||||
}
|
||||
|
||||
public class CaptchaEmailCacheKey
|
||||
{
|
||||
public CaptchaEmailCacheKey(ValidationEmailTypeEnum validationPhoneType, string email)
|
||||
{
|
||||
Email = email;
|
||||
ValidationEmailType = validationPhoneType;
|
||||
}
|
||||
|
||||
public ValidationEmailTypeEnum ValidationEmailType { get; set; }
|
||||
public string Email { get; set; }
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return $"Email:{ValidationEmailType.ToString()}:{Email}";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user