using System.ComponentModel; namespace Net6Demo_Api.Entity { public class LoginInput { /// /// 账号 /// [DefaultValue("")] public string usercode { get; set; } = ""; /// /// 密码 /// [DefaultValue("")] public string password { get; set; } = ""; } }