feat: 新增找回密码功能接口
This commit is contained in:
@@ -3,6 +3,7 @@ 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
|
||||
{
|
||||
@@ -14,13 +15,15 @@ namespace Yi.Framework.Rbac.Domain.Shared.Caches
|
||||
|
||||
public class CaptchaPhoneCacheKey
|
||||
{
|
||||
public CaptchaPhoneCacheKey(string phone) { Phone = phone; }
|
||||
|
||||
public CaptchaPhoneCacheKey(ValidationPhoneTypeEnum validationPhoneType,string phone) { Phone = phone;
|
||||
ValidationPhoneType = validationPhoneType;
|
||||
}
|
||||
public ValidationPhoneTypeEnum ValidationPhoneType { get; set; }
|
||||
public string Phone { get; set; }
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return $"Phone:{Phone}";
|
||||
return $"Phone:{ValidationPhoneType.ToString()}:{Phone}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
namespace Yi.Framework.Rbac.Domain.Shared.Enums;
|
||||
|
||||
public enum ValidationPhoneTypeEnum
|
||||
{
|
||||
/// <summary>
|
||||
/// 注册
|
||||
/// </summary>
|
||||
Register,
|
||||
/// <summary>
|
||||
/// 忘记密码
|
||||
/// </summary>
|
||||
RetrievePassword
|
||||
}
|
||||
Reference in New Issue
Block a user