You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
646 B
C#

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