using NPin.Framework.Upms.Domain.Shared.Dtos;
namespace NPin.Framework.Upms.Domain.Shared.Caches;
public class UserInfoCacheItem
{
///
/// 用户完整信息
///
public UserFullDto Info { get; set; }
public UserInfoCacheItem(UserFullDto info)
{
Info = info;
}
}
public class UserInfoCacheKey
{
///
/// 用户ID
///
public Guid UserId { get; set; }
public UserInfoCacheKey(Guid userId)
{
UserId = userId;
}
public override string ToString()
{
return $"User:{UserId}";
}
}