SysUserInput.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. /// <summary>
  42. /// 分页查询用户
  43. /// </summary>
  44. public class SysUserPageInput : PageInputBase
  45. {
  46. /// <summary>
  47. /// 机构ID
  48. /// </summary>
  49. public short? SysOrgId { get; set; }
  50. /// <summary>
  51. /// 姓名
  52. /// </summary>
  53. public string Name { get; set; }
  54. /// <summary>
  55. /// 账户
  56. /// </summary>
  57. public string Account { get; set; }
  58. /// <summary>
  59. /// 手机号
  60. /// </summary>
  61. public string Mobile { get; set; }
  62. /// <summary>
  63. /// 电子邮箱
  64. /// </summary>
  65. public string Email { get; set; }
  66. }
  67. }