按照软件设计文档开始重构代码01

This commit is contained in:
2025-07-21 14:35:17 +08:00
parent a7b0a5d108
commit 29a2d44319
127 changed files with 12265 additions and 1586 deletions

View File

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