UserUpdateDto.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. using System.ComponentModel.DataAnnotations;
  2. using Abp.Application.Services.Dto;
  3. using Abp.AutoMapper;
  4. using ShwasherSys.Authorization.Users;
  5. using IwbZero.Authorization.Users;
  6. namespace ShwasherSys.BaseSysInfo.Users.Dto
  7. {
  8. [AutoMapTo(typeof(SysUser))]
  9. public class UserUpdateDto : EntityDto<long>
  10. {
  11. [Required]
  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 RealName { get; set; }
  21. [StringLength(UserBase.MaxPhoneNumberLength)]
  22. public string PhoneNumber { get; set; }
  23. public bool IsActive { get; set; }
  24. public string RoleNames { get; set; }
  25. public string FactoryID { get; set; }
  26. public string DepartmentID { get; set; }
  27. public int? DutyID { get; set; }
  28. }
  29. }