Files
Yi.Admin/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Domain.Shared/Caches/CaptchaPhoneCacheItem.cs

30 lines
852 B
C#
Raw Normal View History

2023-12-11 09:55:12 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
2024-10-03 01:10:32 +08:00
using Yi.Framework.Rbac.Domain.Shared.Enums;
2023-12-11 09:55:12 +08:00
namespace Yi.Framework.Rbac.Domain.Shared.Caches
{
public class CaptchaPhoneCacheItem
{
public CaptchaPhoneCacheItem(string code) { Code = code; }
public string Code { get; set; }
}
public class CaptchaPhoneCacheKey
{
2024-10-03 01:10:32 +08:00
public CaptchaPhoneCacheKey(ValidationPhoneTypeEnum validationPhoneType,string phone) { Phone = phone;
ValidationPhoneType = validationPhoneType;
}
public ValidationPhoneTypeEnum ValidationPhoneType { get; set; }
2023-12-11 09:55:12 +08:00
public string Phone { get; set; }
public override string ToString()
{
2024-10-03 01:10:32 +08:00
return $"Phone:{ValidationPhoneType.ToString()}:{Phone}";
2023-12-11 09:55:12 +08:00
}
}
}