SysLogVis.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. [SystemTable]
  15. public class SysLogVis : EntityTenant
  16. {
  17. /// <summary>
  18. /// 模块名称
  19. /// </summary>
  20. [SugarColumn(ColumnDescription = "模块名称", Length = 256)]
  21. [MaxLength(256)]
  22. public string? ControllerName { get; set; }
  23. /// <summary>
  24. /// 方法名称
  25. ///</summary>
  26. [SugarColumn(ColumnDescription = "方法名称", Length = 256)]
  27. [MaxLength(256)]
  28. public string? ActionName { get; set; }
  29. /// <summary>
  30. /// 显示名称
  31. ///</summary>
  32. [SugarColumn(ColumnDescription = "显示名称", Length = 256)]
  33. [MaxLength(256)]
  34. public string? DisplayTitle { get; set; }
  35. /// <summary>
  36. /// 执行状态
  37. /// </summary>
  38. [SugarColumn(ColumnDescription = "执行状态", Length = 32)]
  39. [MaxLength(32)]
  40. public string? Status { get; set; }
  41. /// <summary>
  42. /// IP地址
  43. /// </summary>
  44. [SugarColumn(ColumnDescription = "IP地址", Length = 256)]
  45. [MaxLength(256)]
  46. public string? RemoteIp { get; set; }
  47. /// <summary>
  48. /// 登录地点
  49. /// </summary>
  50. [SugarColumn(ColumnDescription = "登录地点", Length = 128)]
  51. [MaxLength(128)]
  52. public string? Location { get; set; }
  53. /// <summary>
  54. /// 经度
  55. /// </summary>
  56. [SugarColumn(ColumnDescription = "经度")]
  57. public double? Longitude { get; set; }
  58. /// <summary>
  59. /// 维度
  60. /// </summary>
  61. [SugarColumn(ColumnDescription = "维度")]
  62. public double? Latitude { get; set; }
  63. /// <summary>
  64. /// 浏览器
  65. /// </summary>
  66. [SugarColumn(ColumnDescription = "浏览器", Length = 1024)]
  67. [MaxLength(1024)]
  68. public string? Browser { get; set; }
  69. /// <summary>
  70. /// 操作系统
  71. /// </summary>
  72. [SugarColumn(ColumnDescription = "操作系统", Length = 256)]
  73. [MaxLength(256)]
  74. public string? Os { get; set; }
  75. /// <summary>
  76. /// 操作用时
  77. /// </summary>
  78. [SugarColumn(ColumnDescription = "操作用时")]
  79. public long? Elapsed { get; set; }
  80. /// <summary>
  81. /// 日志时间
  82. /// </summary>
  83. [SugarColumn(ColumnDescription = "日志时间")]
  84. public DateTime? LogDateTime { get; set; }
  85. /// <summary>
  86. /// 日志级别
  87. /// </summary>
  88. [SugarColumn(ColumnDescription = "日志级别")]
  89. public LogLevel? LogLevel { get; set; }
  90. /// <summary>
  91. /// 账号
  92. /// </summary>
  93. [SugarColumn(ColumnDescription = "账号", Length = 32)]
  94. [MaxLength(32)]
  95. public string? Account { get; set; }
  96. /// <summary>
  97. /// 真实姓名
  98. /// </summary>
  99. [SugarColumn(ColumnDescription = "真实姓名", Length = 32)]
  100. [MaxLength(32)]
  101. public string? RealName { get; set; }
  102. }