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

15 lines
371 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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; }
}
}