Backend/C_shape/WEBAPI/JWT/JWTdemo/Models/AuthenticateResponse.cs

20 lines
418 B
C#
Raw Normal View History

2024-05-06 14:09:39 +08:00
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;
}
}