|
|
@ -1,51 +1,51 @@
|
|
|
|
using NPin.Framework.Upms.Domain.Shared.Enums;
|
|
|
|
using NPin.Framework.Upms.Domain.Shared.Enums;
|
|
|
|
|
|
|
|
|
|
|
|
namespace NPin.Framework.Upms.Domain.Shared.Dtos;
|
|
|
|
namespace NPin.Framework.Upms.Domain.Shared.Dtos;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// 完整用户信息Dto
|
|
|
|
/// 完整用户信息Dto
|
|
|
|
/// 包括所有关联关系
|
|
|
|
/// 包括所有关联关系
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
public class UserFullDto
|
|
|
|
public class UserFullDto
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public UserDto User { get; set; } = new();
|
|
|
|
public UserDto User { get; set; } = new();
|
|
|
|
|
|
|
|
|
|
|
|
// Relations
|
|
|
|
// Relations
|
|
|
|
public HashSet<RoleDto> Roles { get; set; } = [];
|
|
|
|
public HashSet<RoleDto> Roles { get; set; } = [];
|
|
|
|
public HashSet<PostDto> Posts { get; set; } = [];
|
|
|
|
public HashSet<PostDto> Posts { get; set; } = [];
|
|
|
|
public HashSet<OrganizationDto> Organizations { get; set; } = [];
|
|
|
|
public HashSet<OrganizationDto> Organizations { get; set; } = [];
|
|
|
|
|
|
|
|
|
|
|
|
public HashSet<string> PostCodes { get; set; } = [];
|
|
|
|
public HashSet<string> PostCodes { get; set; } = [];
|
|
|
|
public HashSet<string> RoleCodes { get; set; } = [];
|
|
|
|
public HashSet<string> RoleCodes { get; set; } = [];
|
|
|
|
public HashSet<string> PermissionCodes { get; set; } = [];
|
|
|
|
public HashSet<string> PermissionCodes { get; set; } = [];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class UserDto
|
|
|
|
public class UserDto
|
|
|
|
{
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// 主键ID
|
|
|
|
/// 主键ID
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public bool IsDeleted { get; }
|
|
|
|
public bool IsDeleted { get; set; }
|
|
|
|
public DateTime CreationTime { get; } = DateTime.Now;
|
|
|
|
public DateTime CreationTime { get; } = DateTime.Now;
|
|
|
|
public Guid? CreatorId { get; }
|
|
|
|
public Guid? CreatorId { get; set; }
|
|
|
|
public DateTime? LastModificationTime { get; }
|
|
|
|
public DateTime? LastModificationTime { get; set; }
|
|
|
|
public Guid? LastModifierId { get; }
|
|
|
|
public Guid? LastModifierId { get; set; }
|
|
|
|
public bool IsEnabled { get; set; }
|
|
|
|
public bool IsEnabled { get; set; }
|
|
|
|
public int OrderNum { get; set; }
|
|
|
|
public int OrderNum { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public string Username { get; set; } = string.Empty;
|
|
|
|
public string Username { get; set; } = string.Empty;
|
|
|
|
public string PhoneNumber { get; set; }
|
|
|
|
public string PhoneNumber { get; set; }
|
|
|
|
public string? Email { get; set; }
|
|
|
|
public string? Email { get; set; }
|
|
|
|
public string? Nickname { get; set; }
|
|
|
|
public string? Nickname { get; set; }
|
|
|
|
public string Password { get; set; } = string.Empty;
|
|
|
|
public string Password { get; set; } = string.Empty;
|
|
|
|
public string Salt { get; set; } = string.Empty;
|
|
|
|
public string Salt { get; set; } = string.Empty;
|
|
|
|
public string? Introduction { get; set; }
|
|
|
|
public string? Introduction { get; set; }
|
|
|
|
public GenderEnum Gender { get; set; } = GenderEnum.Secrecy;
|
|
|
|
public GenderEnum Gender { get; set; } = GenderEnum.Secrecy;
|
|
|
|
public string? IpAddr { get; set; }
|
|
|
|
public string? IpAddr { get; set; }
|
|
|
|
public string? Avatar { get; set; }
|
|
|
|
public string? Avatar { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
// For user (metadata)
|
|
|
|
// For user (metadata)
|
|
|
|
public Dictionary<string, string> Metadata { get; set; }
|
|
|
|
public Dictionary<string, string> Metadata { get; set; }
|
|
|
|
}
|
|
|
|
}
|