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

SysLogVisit.cs 2.4 KiB

3 months ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. 
  2. //
  3. namespace SafeCampus.System;
  4. /// <summary>
  5. /// 访问日志表
  6. ///</summary>
  7. [SugarTable("sys_log_visit_{year}{month}{day}", TableDescription = "访问日志表")]
  8. [SplitTable(SplitType.Year)]//按年分表 (自带分表支持 年、季、月、周、日)
  9. [Tenant(SqlSugarConst.DB_DEFAULT)]
  10. public class SysLogVisit : BaseEntity
  11. {
  12. /// <summary>
  13. /// 日志分类
  14. ///</summary>
  15. [SugarColumn(ColumnName = "Category", ColumnDescription = "日志分类", Length = 200)]
  16. public string Category { get; set; }
  17. /// <summary>
  18. /// 日志名称
  19. ///</summary>
  20. [SugarColumn(ColumnName = "Name", ColumnDescription = "日志名称", Length = 200)]
  21. public string Name { get; set; }
  22. /// <summary>
  23. /// 执行状态
  24. ///</summary>
  25. [SugarColumn(ColumnName = "ExeStatus", ColumnDescription = "执行状态", Length = 200)]
  26. public string ExeStatus { get; set; }
  27. /// <summary>
  28. /// 操作ip
  29. ///</summary>
  30. [SugarColumn(ColumnName = "OpIp", ColumnDescription = "操作ip", Length = 200)]
  31. public string OpIp { get; set; }
  32. /// <summary>
  33. /// 操作地址
  34. ///</summary>
  35. [SugarColumn(ColumnName = "OpAddress", ColumnDescription = "操作地址", Length = 200)]
  36. public string OpAddress { get; set; }
  37. /// <summary>
  38. /// 操作浏览器
  39. ///</summary>
  40. [SugarColumn(ColumnName = "OpBrowser", ColumnDescription = "操作浏览器", Length = 200)]
  41. public string OpBrowser { get; set; }
  42. /// <summary>
  43. /// 操作系统
  44. ///</summary>
  45. [SugarColumn(ColumnName = "OpOs", ColumnDescription = "操作系统", Length = 200)]
  46. public string OpOs { get; set; }
  47. /// <summary>
  48. /// 操作时间
  49. ///</summary>
  50. [SugarColumn(ColumnName = "OpTime", ColumnDescription = "操作时间")]
  51. [SplitField]//分表字段 在插入的时候会根据这个字段插入哪个表,在更新删除的时候用这个字段找出相关表
  52. public DateTime OpTime { get; set; }
  53. /// <summary>
  54. /// 操作人姓名
  55. ///</summary>
  56. [SugarColumn(ColumnName = "OpUser", ColumnDescription = "操作人姓名", Length = 200, IsNullable = true)]
  57. public string OpUser { get; set; }
  58. /// <summary>
  59. /// 操作人姓名
  60. ///</summary>
  61. [SugarColumn(ColumnName = "OpAccount", ColumnDescription = "操作人账号", Length = 200, IsNullable = true)]
  62. public string OpAccount { get; set; }
  63. }