UserCreateDto.cs 1009 B

123456789101112131415161718192021222324252627282930313233343536
  1. using System.ComponentModel.DataAnnotations;
  2. using Abp.AutoMapper;
  3. using ShwasherSys.Authorization.Users;
  4. using IwbZero.Authorization.Users;
  5. namespace ShwasherSys.BaseSysInfo.Users.Dto
  6. {
  7. [AutoMapTo(typeof(SysUser))]
  8. public class UserCreateDto
  9. {
  10. [Required]
  11. [StringLength(UserBase.MaxUserNameLength)]
  12. public string UserName { get; set; }
  13. public int UserType { get; set; }
  14. [Required]
  15. [StringLength(UserBase.MaxEmailAddressLength)]
  16. public string EmailAddress { get; set; }
  17. [Required]
  18. [StringLength(UserBase.MaxNameLength)]
  19. public string RealName { get; set; }
  20. [StringLength(UserBase.MaxPhoneNumberLength)]
  21. public string PhoneNumber { get; set; }
  22. public bool IsActive { get; set; }
  23. public string RoleNames { get; set; }
  24. public string FactoryID { get; set; }
  25. public string DepartmentID { get; set; }
  26. public int? DutyID { get; set; }
  27. }
  28. }