Backend/C_shape/WEBAPI/JWT/JWTdemo/Entities/User.cs

15 lines
371 B
C#
Raw Normal View History

2024-05-06 14:09:39 +08:00
using System.Text.Json.Serialization;
namespace JWTdemo.Entities
{
public class User
{
public int Id { get; set; }
public string? Name { get; set; }
public string? Username { get; set; }
[JsonIgnore] //這個就是當有人要get這個資料時會自動將其隱藏
public string? Password { get; set; }
}
}