15 lines
371 B
C#
15 lines
371 B
C#
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; }
|
||
}
|
||
}
|