UserCreateDto.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. using System.ComponentModel.DataAnnotations;
  2. using Abp.AutoMapper;
  3. using AutoMapper;
  4. using AutoMapper.Configuration.Annotations;
  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 UserCreateDto
  11. {
  12. [StringLength(UserBase.MaxUserNameLength)]
  13. public string UserName { get; set; }
  14. public int UserType { get; set; }
  15. [Required]
  16. [StringLength(UserBase.MaxEmailAddressLength)]
  17. public string EmailAddress { get; set; }
  18. [Required]
  19. [StringLength(UserBase.MaxNameLength)]
  20. public string Name { get; set; }
  21. [StringLength(UserBase.MaxPhoneNumberLength)]
  22. public string PhoneNumber { get; set; }
  23. public bool IsActive { get; set; }
  24. [IgnoreMap]
  25. public string RoleNames { get; set; }
  26. public int? AccountType { get; set; }
  27. [StringLength(UserBase.MaxAccountNoLength)]
  28. public string AccountNo { get; set; }
  29. }
  30. }