平安校园
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.
 
 
 
 
 
 

81 lines
1.5 KiB

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