using Abp.AutoMapper; using System.ComponentModel.DataAnnotations; using VberZero.AppService.Base.Dto; using VberZero.BaseSystem.Users; namespace VberZero.AppService.Users.Dto; [AutoMapFrom(typeof(User))] public class UserDto : VzEntityDto { [Required] [StringLength(User.MaxUserNameLength)] public string UserName { get; set; } [Required] [StringLength(User.MaxNameLength)] public string Name { get; set; } [Required] [StringLength(User.MaxSurnameLength)] public string Surname { get; set; } [Required] [EmailAddress] [StringLength(User.MaxEmailAddressLength)] public string EmailAddress { get; set; } public bool IsActive { get; set; } public string FullName { get; set; } public string PhoneNumber { get; set; } public DateTime? LastLoginTime { get; set; } public DateTime CreationTime { get; set; } public string[] RoleNames { get; set; } public VzDefinition.GenderType Gender { get; set; } public VzDefinition.UserType UserType { get; set; } public VzDefinition.AccountType AccountType { get; set; } public string AccountNo { get; set; } }