34 lines
771 B
C#
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; }
|
|
}
|
|
}
|