SysUserInput.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application
  3. {
  4. public class UpdateSysUserStatusInput : BaseId
  5. {
  6. /// <summary>
  7. /// 状态-正常_0、停用_1、删除_2
  8. /// </summary>
  9. public CommonStatus Status { get; set; }
  10. }
  11. public class QuerySysUserInput : BaseId
  12. {
  13. }
  14. /// <summary>
  15. /// 更新用户密码输入参数
  16. /// </summary>
  17. public class ChangeSysUserPasswordInput
  18. {
  19. /// <summary>
  20. /// 旧密码
  21. /// </summary>
  22. [Required(ErrorMessage = "旧密码不能为空")]
  23. public string OldPassword { get; set; }
  24. /// <summary>
  25. /// 新密码
  26. /// </summary>
  27. [Required(ErrorMessage = "新密码不能为空")]
  28. public string NewPassword { get; set; }
  29. }
  30. /// <summary>
  31. /// 更新用户头像输入参数
  32. /// </summary>
  33. public class UploadSysUserAvatarInput : BaseId
  34. {
  35. /// <summary>
  36. /// 头像
  37. /// </summary>
  38. [Required(ErrorMessage = "头像不能为空")]
  39. public string Avatar { get; set; }
  40. }
  41. }