Backend/C_shape/WEBAPI/JWT/JWTdemo/Models/AuthenticateResponse.cs
Lin Weiting c07b6c1706 JWT
2024-05-06 14:09:39 +08:00

20 lines
418 B
C#

namespace JWTdemo.Models;
using JWTdemo.Entities;
public class AuthenticateResponse
{
public int Id { get; set; }
public string? Name { get; set; }
public string? Username { get; set; }
public string Token { get; set; }
public AuthenticateResponse(User user, string token)
{
Id = user.Id;
Name = user.Name;
Username = user.Username;
Token = token;
}
}