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

SessionOutput.cs 1.7 KiB

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