SysUserOutput.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. /// <summary>
  4. /// 用户输出参数
  5. /// </summary>
  6. public class SysUserOutput
  7. {
  8. /// <summary>
  9. /// 主键
  10. /// </summary>
  11. [Required]
  12. public int Id { get; set; }
  13. /// <summary>
  14. /// 名称
  15. /// </summary>
  16. [Required]
  17. public string Name { get; set; }
  18. /// <summary>
  19. /// 机构ID
  20. /// </summary>
  21. [Required]
  22. public short SysOrgId { get; set; }
  23. /// <summary>
  24. /// 头像地址
  25. /// </summary>
  26. public string Avatar { get; set; }
  27. /// <summary>
  28. /// 手机
  29. /// </summary>
  30. public string Mobile { get; set; }
  31. /// <summary>
  32. /// 电子邮箱
  33. /// </summary>
  34. public string Email { get; set; }
  35. /// <summary>
  36. /// 工号
  37. /// </summary>
  38. public string JobNumber { get; set; }
  39. /// <summary>
  40. /// 备注
  41. /// </summary>
  42. public string Remark { get; set; }
  43. /// <summary>
  44. /// 账号
  45. /// </summary>
  46. public string Account { get; set; }
  47. /// <summary>
  48. /// 最后登录IP
  49. /// </summary>
  50. public string LastLoginIp { get; set; }
  51. /// <summary>
  52. /// 最后登录时间
  53. /// </summary>
  54. public DateTime? LastLoginTime { get; set; }
  55. /// <summary>
  56. /// 用户自定义配置
  57. /// </summary>
  58. public string Config { get; set; }
  59. /// <summary>
  60. /// 是否已激活
  61. /// </summary>
  62. [Required]
  63. public bool IsActivated { get; set; }
  64. /// <summary>
  65. /// 激活时间
  66. /// </summary>
  67. public DateTime? ActivateTime { get; set; }
  68. /// <summary>
  69. /// 状态
  70. /// </summary>
  71. public virtual CommonStatus Status { get; set; }
  72. /// <summary>
  73. /// 多对多(角色)
  74. /// </summary>
  75. public List<SysRoleOutput> SysRoles { get; set; }
  76. /// <summary>
  77. /// 一对一引用(机构)
  78. /// </summary>
  79. public SysOrg SysOrg { get; set; }
  80. }
  81. /// <summary>
  82. /// 最小用户输出信息
  83. /// </summary>
  84. public class SysUserLiteOutput
  85. {
  86. /// <summary>
  87. /// 用户ID
  88. /// </summary>
  89. public int Id { get; set; }
  90. /// <summary>
  91. /// 名称
  92. /// </summary>
  93. public string Name { get; set; }
  94. }