live-forum/server/webapi/LiveForum/LiveForum.Code/JwtInfrastructure/JwtAccessToken.cs
2026-03-24 11:27:37 +08:00

34 lines
771 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
namespace LiveForum.Code.JwtInfrastructure
{
/// <summary>
/// ÁîÅÆ
/// </summary>
public class JwtAccessToken
{
/// <summary>
/// Óû§Ãû
/// </summary>
[JsonPropertyName("username")]
public string UserName { get; set; } = string.Empty;
/// <summary>
/// token
/// </summary>
[JsonPropertyName("token")]
public string Token { get; set; } = string.Empty;
/// <summary>
/// ¹ýÆÚʱ¼ä
/// </summary>
[JsonPropertyName("expireAt")]
public DateTime ExpireAt { get; set; }
}
}