按照软件设计文档开始重构代码01
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
namespace DMS.Core.Models;
|
||||
|
||||
/// <summary>
|
||||
/// 领域模型:代表一个用户。
|
||||
/// </summary>
|
||||
public class User
|
||||
{
|
||||
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public string Password { get; set; }
|
||||
public string Email { get; set; }
|
||||
public string PhoneNumber { get; set; }
|
||||
public string Address { get; set; }
|
||||
public string Username { get; set; }
|
||||
public string PasswordHash { get; set; } // 存储密码哈希值
|
||||
public string Role { get; set; } // 用户角色,例如 "Admin", "Operator"
|
||||
public bool IsActive { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user