SysLogininfor.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. namespace Model
  2. {
  3. /// <summary>
  4. /// sys_logininfor 表
  5. /// </summary>
  6. [SugarTable("sys_logininfor", "登录日志表")]
  7. [Tenant("0")]
  8. public class SysLogininfor
  9. {
  10. [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
  11. public long InfoId { get; set; }
  12. /// <summary>
  13. /// 用户账号
  14. /// </summary>
  15. public string UserName { get; set; }
  16. /// <summary>
  17. /// 登录状态 0成功 1失败
  18. /// </summary>
  19. [SugarColumn(Length = 1, DefaultValue = "0")]
  20. public string Status { get; set; }
  21. /// <summary>
  22. /// 登录IP地址
  23. /// </summary>
  24. public string Ipaddr { get; set; } = string.Empty;
  25. /// <summary>
  26. /// 登录地点
  27. /// </summary>
  28. public string LoginLocation { get; set; } = string.Empty;
  29. /// <summary>
  30. /// 浏览器类型
  31. /// </summary>
  32. public string Browser { get; set; } = string.Empty;
  33. /// <summary>
  34. /// 操作系统
  35. /// </summary>
  36. public string Os { get; set; } = string.Empty;
  37. /// <summary>
  38. /// 提示消息
  39. /// </summary>
  40. public string Msg { get; set; } = string.Empty;
  41. /// <summary>
  42. /// 访问时间
  43. /// </summary>
  44. public DateTime LoginTime { get; set; } = DateTime.Now;
  45. [SugarColumn(IsIgnore = true)]
  46. public DateTime? BeginTime { get; set; }
  47. [SugarColumn(IsIgnore = true)]
  48. public DateTime? EndTime { get; set; }
  49. }
  50. }