UserUpdateDto.cs 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. using System.ComponentModel.DataAnnotations;
  2. using Abp.Application.Services.Dto;
  3. using Abp.AutoMapper;
  4. using AutoMapper;
  5. using ContractService.Authorization.Users;
  6. using IwbZero.Authorization.Base.Users;
  7. namespace ContractService.BaseSystem.Users.Dto
  8. {
  9. [AutoMapTo(typeof(User))]
  10. public class UserUpdateDto : EntityDto<long>
  11. {
  12. [Required]
  13. [StringLength(UserBase.MaxUserNameLength)]
  14. public string UserName { get; set; }
  15. public int UserType { get; set; }
  16. [StringLength(UserBase.MaxEmailAddressLength)]
  17. public string EmailAddress { get; set; }
  18. [StringLength(UserBase.MaxNameLength)]
  19. public string Name { get; set; }
  20. [StringLength(UserBase.MaxPhoneNumberLength)]
  21. public string PhoneNumber { get; set; }
  22. public bool IsActive { get; set; }
  23. [IgnoreMap]
  24. public string RoleNames { get; set; }
  25. public int? AccountType { get; set; }
  26. //[StringLength(UserBase.MaxAccountNoLength)]
  27. //public string AccountNo { get; set; }
  28. }
  29. }