UserCreateDto.cs 1.0 KB

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