SysLogVis.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. // 麻省理工学院许可证
  2. //
  3. // 版权所有 (c) 2021-2023 zuohuaijun,大名科技(天津)有限公司 联系电话/微信:18020030720 QQ:515096995
  4. //
  5. // 特此免费授予获得本软件的任何人以处理本软件的权利,但须遵守以下条件:在所有副本或重要部分的软件中必须包括上述版权声明和本许可声明。
  6. //
  7. // 软件按“原样”提供,不提供任何形式的明示或暗示的保证,包括但不限于对适销性、适用性和非侵权的保证。
  8. // 在任何情况下,作者或版权持有人均不对任何索赔、损害或其他责任负责,无论是因合同、侵权或其他方式引起的,与软件或其使用或其他交易有关。
  9. namespace Admin.NET.Core;
  10. /// <summary>
  11. /// 系统访问日志表
  12. /// </summary>
  13. [SugarTable(null, "系统访问日志表")]
  14. [SysTable]
  15. [LogTable]
  16. public class SysLogVis : EntityTenant
  17. {
  18. /// <summary>
  19. /// 模块名称
  20. /// </summary>
  21. [SugarColumn(ColumnDescription = "模块名称", Length = 256)]
  22. [MaxLength(256)]
  23. public string? ControllerName { get; set; }
  24. /// <summary>
  25. /// 方法名称
  26. ///</summary>
  27. [SugarColumn(ColumnDescription = "方法名称", Length = 256)]
  28. [MaxLength(256)]
  29. public string? ActionName { get; set; }
  30. /// <summary>
  31. /// 显示名称
  32. ///</summary>
  33. [SugarColumn(ColumnDescription = "显示名称", Length = 256)]
  34. [MaxLength(256)]
  35. public string? DisplayTitle { get; set; }
  36. /// <summary>
  37. /// 执行状态
  38. /// </summary>
  39. [SugarColumn(ColumnDescription = "执行状态", Length = 32)]
  40. [MaxLength(32)]
  41. public string? Status { get; set; }
  42. /// <summary>
  43. /// IP地址
  44. /// </summary>
  45. [SugarColumn(ColumnDescription = "IP地址", Length = 256)]
  46. [MaxLength(256)]
  47. public string? RemoteIp { get; set; }
  48. /// <summary>
  49. /// 登录地点
  50. /// </summary>
  51. [SugarColumn(ColumnDescription = "登录地点", Length = 128)]
  52. [MaxLength(128)]
  53. public string? Location { get; set; }
  54. /// <summary>
  55. /// 经度
  56. /// </summary>
  57. [SugarColumn(ColumnDescription = "经度")]
  58. public double? Longitude { get; set; }
  59. /// <summary>
  60. /// 维度
  61. /// </summary>
  62. [SugarColumn(ColumnDescription = "维度")]
  63. public double? Latitude { get; set; }
  64. /// <summary>
  65. /// 浏览器
  66. /// </summary>
  67. [SugarColumn(ColumnDescription = "浏览器", Length = 1024)]
  68. [MaxLength(1024)]
  69. public string? Browser { get; set; }
  70. /// <summary>
  71. /// 操作系统
  72. /// </summary>
  73. [SugarColumn(ColumnDescription = "操作系统", Length = 256)]
  74. [MaxLength(256)]
  75. public string? Os { get; set; }
  76. /// <summary>
  77. /// 操作用时
  78. /// </summary>
  79. [SugarColumn(ColumnDescription = "操作用时")]
  80. public long? Elapsed { get; set; }
  81. /// <summary>
  82. /// 日志时间
  83. /// </summary>
  84. [SugarColumn(ColumnDescription = "日志时间")]
  85. public DateTime? LogDateTime { get; set; }
  86. /// <summary>
  87. /// 日志级别
  88. /// </summary>
  89. [SugarColumn(ColumnDescription = "日志级别")]
  90. public LogLevel? LogLevel { get; set; }
  91. /// <summary>
  92. /// 账号
  93. /// </summary>
  94. [SugarColumn(ColumnDescription = "账号", Length = 32)]
  95. [MaxLength(32)]
  96. public string? Account { get; set; }
  97. /// <summary>
  98. /// 真实姓名
  99. /// </summary>
  100. [SugarColumn(ColumnDescription = "真实姓名", Length = 32)]
  101. [MaxLength(32)]
  102. public string? RealName { get; set; }
  103. }