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

55 lines
835 B

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