SysLog.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. namespace Model
  2. {
  3. /// <summary>
  4. /// 日志表 sys_log
  5. /// </summary>
  6. [SugarTable("sys_log", "日志表")]
  7. [Tenant("0")]
  8. public class SysLog
  9. {
  10. /// <summary>
  11. /// 编号
  12. /// </summary>
  13. [SugarColumn(ColumnDescription = "编号", ColumnName = "id")]
  14. public long Id { get; set; }
  15. /// <summary>
  16. /// 日志类型
  17. /// </summary>
  18. [SugarColumn(ColumnDescription = "日志类型", Length = 1, ColumnName = "log_type")]
  19. public string LogType { get; set; }
  20. /// <summary>
  21. /// 日志标题
  22. /// </summary>
  23. [SugarColumn(ColumnDescription = "日志标题", Length = 255, ColumnName = "title")]
  24. public string Title { get; set; }
  25. /// <summary>
  26. /// 服务ID
  27. /// </summary>
  28. [SugarColumn(ColumnDescription = "服务ID", Length = 32, ColumnName = "service_id")]
  29. public string ServiceId { get; set; }
  30. /// <summary>
  31. /// 创建人
  32. /// </summary>
  33. [SugarColumn(ColumnDescription = "创建人", Length = 64, ColumnName = "create_by")]
  34. public string CreateBy { get; set; }
  35. /// <summary>
  36. /// 修改人
  37. /// </summary>
  38. [SugarColumn(ColumnDescription = "修改人", Length = 64, ColumnName = "update_by")]
  39. public string UpdateBy { get; set; }
  40. /// <summary>
  41. /// 创建时间
  42. /// </summary>
  43. [SugarColumn(ColumnDescription = "创建时间", ColumnName = "create_time")]
  44. public DateTime? CreateTime { get; set; }
  45. /// <summary>
  46. /// 更新时间
  47. /// </summary>
  48. [SugarColumn(ColumnDescription = "更新时间", ColumnName = "update_time")]
  49. public DateTime? UpdateTime { get; set; }
  50. /// <summary>
  51. /// 远程地址
  52. /// </summary>
  53. [SugarColumn(ColumnDescription = "远程地址", Length = 255, ColumnName = "remote_addr")]
  54. public string RemoteAddr { get; set; }
  55. /// <summary>
  56. /// 用户代理
  57. /// </summary>
  58. [SugarColumn(ColumnDescription = "用户代理", Length = 1000, ColumnName = "user_agent")]
  59. public string UserAgent { get; set; }
  60. /// <summary>
  61. /// 请求URI
  62. /// </summary>
  63. [SugarColumn(ColumnDescription = "请求URI", Length = 255, ColumnName = "request_uri")]
  64. public string RequestUri { get; set; }
  65. /// <summary>
  66. /// 请求方法
  67. /// </summary>
  68. [SugarColumn(ColumnDescription = "请求方法", Length = 10, ColumnName = "method")]
  69. public string Method { get; set; }
  70. /// <summary>
  71. /// 请求参数
  72. /// </summary>
  73. [SugarColumn(ColumnDescription = "请求参数", ColumnName = "params")]
  74. public string Params { get; set; }
  75. /// <summary>
  76. /// 执行时间
  77. /// </summary>
  78. [SugarColumn(ColumnDescription = "执行时间", ColumnName = "time")]
  79. public long Time { get; set; }
  80. /// <summary>
  81. /// 删除标志
  82. /// </summary>
  83. [SugarColumn(ColumnDescription = "删除标志", Length = 1, ColumnName = "del_flag")]
  84. public string DelFlag { get; set; }
  85. /// <summary>
  86. /// 异常信息
  87. /// </summary>
  88. [SugarColumn(ColumnDescription = "异常信息", ColumnName = "exception")]
  89. public string Exception { get; set; }
  90. }
  91. }