平安校园
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 
 

73 Zeilen
2.4 KiB

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