平安校园
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UserCenterInput.cs 1.5 KiB

4 months ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. 
  2. //
  3. namespace SafeCampus.System;
  4. /// <summary>
  5. /// 编辑个人信息参数
  6. /// </summary>
  7. public class UpdateInfoInput : SysUser
  8. {
  9. /// <summary>
  10. /// 姓名
  11. /// </summary>
  12. [Required(ErrorMessage = "Name不能为空")]
  13. public override string Name { get; set; }
  14. }
  15. public class UpdateSignatureInput
  16. {
  17. /// <summary>
  18. /// 签名图片
  19. /// </summary>
  20. [Required(ErrorMessage = "Signature签名图片不能为空")]
  21. public string Signature { get; set; }
  22. }
  23. /// <summary>
  24. /// 更新个人工作台
  25. /// </summary>
  26. public class UpdateWorkbenchInput
  27. {
  28. /// <summary>
  29. /// 工作台数据
  30. /// </summary>
  31. [Required(ErrorMessage = "WorkbenchData不能为空")]
  32. public string WorkbenchData { get; set; }
  33. }
  34. /// <summary>
  35. /// 更新个人密码
  36. /// </summary>
  37. public class UpdatePasswordInput
  38. {
  39. /// <summary>
  40. /// 密码
  41. /// </summary>
  42. [Required(ErrorMessage = "Password不能为空")]
  43. public string Password { get; set; }
  44. /// <summary>
  45. /// 新密码
  46. /// </summary>
  47. [Required(ErrorMessage = "NewPassword不能为空")]
  48. public string NewPassword { get; set; }
  49. }
  50. /// <summary>
  51. /// 设置默认模块输入
  52. /// </summary>
  53. public class SetDefaultModuleInput
  54. {
  55. /// <summary>
  56. /// 模块Id
  57. /// </summary>
  58. [Required(ErrorMessage = "Id不能为空")]
  59. public long Id { get; set; }
  60. /// <summary>
  61. /// 是否默认
  62. /// </summary>
  63. [Required(ErrorMessage = "IfDefault不能为空")]
  64. public bool IfDefault { get; set; }
  65. }