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

LoginEvent.cs 835 B

4 月之前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. 
  2. //
  3. using UAParser;
  4. namespace SafeCampus.System;
  5. /// <summary>
  6. /// 登录事件参数
  7. /// </summary>
  8. public class LoginEvent
  9. {
  10. /// <summary>
  11. /// 请求上下文
  12. /// </summary>
  13. public ClientInfo ClientInfo { get; set; }
  14. /// <summary>
  15. /// 用户信息
  16. /// </summary>
  17. public SysUser SysUser { get; set; }
  18. /// <summary>
  19. /// Ip地址
  20. /// </summary>
  21. public string Ip { get; set; }
  22. /// <summary>
  23. /// 登录设备
  24. /// </summary>
  25. public AuthDeviceTypeEnum Device { get; set; }
  26. /// <summary>
  27. /// Tokens
  28. /// </summary>
  29. public string Token { get; set; }
  30. /// <summary>
  31. /// 过期时间
  32. /// </summary>
  33. public int Expire { get; set; }
  34. /// <summary>
  35. /// 时间
  36. /// </summary>
  37. public DateTime DateTime = DateTime.Now;
  38. }