Files
StoreWeb/Core/MAX.Framework/Security/OnlineUserInfo.cs
T
2026-10-29 11:34:35 +08:00

19 lines
805 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
namespace MAX.Framework.Security;
/// <summary>登录会话展示 DTO;Jti 为数据库 Token 记录 ID。</summary>
public class OnlineUserInfo
{
public string Jti { get; set; } = string.Empty;
public string UserName { get; set; } = string.Empty;
public string NickName { get; set; } = string.Empty;
/// <summary>服务端观察到的客户端 IP;反向代理需配置受信任的转发头。</summary>
public string LoginIp { get; set; } = string.Empty;
/// <summary>UTC 登录时间。</summary>
public DateTime LoginTime { get; set; }
/// <summary>UTC 当前滑动到期时间。</summary>
public DateTime ExpiresAt { get; set; }
/// <summary>UTC 撤销时间;保留记录供后续面板查询。</summary>
public DateTime? RevokedAt { get; set; }
}