UserUpdateDto.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. using System.ComponentModel.DataAnnotations;
  2. using Abp.Application.Services.Dto;
  3. using Abp.AutoMapper;
  4. using AutoMapper;
  5. using WeApp.Authorization.Users;
  6. using IwbZero.Authorization.Base.Users;
  7. namespace WeApp.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. [Required]
  17. [StringLength(UserBase.MaxEmailAddressLength)]
  18. public string EmailAddress { get; set; }
  19. [Required]
  20. [StringLength(UserBase.MaxNameLength)]
  21. public string Name { get; set; }
  22. [StringLength(UserBase.MaxPhoneNumberLength)]
  23. public string PhoneNumber { get; set; }
  24. public bool IsActive { get; set; }
  25. [IgnoreMap]
  26. public string RoleNames { get; set; }
  27. public int? AccountType { get; set; }
  28. [StringLength(UserBase.MaxAccountNoLength)]
  29. public string AccountNo { get; set; }
  30. }
  31. }