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

95 lines
1.7 KiB

  1. //
  2. namespace SafeCampus.System;
  3. /// <summary>
  4. /// 会话输出
  5. /// </summary>
  6. public class SessionOutput
  7. {
  8. /// <summary>
  9. /// 主键Id
  10. /// </summary>
  11. public virtual long Id { get; set; }
  12. /// <summary>
  13. /// 头像
  14. ///</summary>
  15. public string Avatar { get; set; }
  16. /// <summary>
  17. /// 账号
  18. ///</summary>
  19. public virtual string Account { get; set; }
  20. /// <summary>
  21. /// 姓名
  22. ///</summary>
  23. public virtual string Name { get; set; }
  24. /// <summary>
  25. /// 在线状态
  26. /// </summary>
  27. public string OnlineStatus { get; set; }
  28. /// <summary>
  29. /// 最新登录ip
  30. ///</summary>
  31. public string LatestLoginIp { get; set; }
  32. /// <summary>
  33. /// 最新登录地点
  34. ///</summary>
  35. public string LatestLoginAddress { get; set; }
  36. /// <summary>
  37. /// 最新登录时间
  38. ///</summary>
  39. public DateTime? LatestLoginTime { get; set; }
  40. /// <summary>
  41. /// 令牌数量
  42. /// </summary>
  43. public int TokenCount { get; set; }
  44. /// <summary>
  45. /// 令牌信息集合
  46. /// </summary>
  47. public List<TokenInfo> TokenSignList { get; set; }
  48. }
  49. /// <summary>
  50. /// 会话统计结果
  51. /// </summary>
  52. public class SessionAnalysisOutPut
  53. {
  54. /// <summary>
  55. /// 当前会话总数量
  56. /// </summary>
  57. public int CurrentSessionTotalCount { get; set; }
  58. /// <summary>
  59. /// 最大签发令牌数
  60. /// </summary>
  61. public int MaxTokenCount { get; set; }
  62. /// <summary>
  63. /// 在线用户数
  64. /// </summary>
  65. public int OnLineCount { get; set; }
  66. /// <summary>
  67. /// BC端会话比例
  68. /// </summary>
  69. public string ProportionOfBAndC { get; set; }
  70. }