SysLogOp.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. using Furion.DatabaseAccessor;
  2. using Microsoft.EntityFrameworkCore;
  3. using System;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.ComponentModel.DataAnnotations.Schema;
  6. namespace YBEE.EQM.Core
  7. {
  8. /// <summary>
  9. /// 操作日志表
  10. /// </summary>
  11. [Comment("操作日志表")]
  12. public partial class SysLogOp : IEntity
  13. {
  14. /// <summary>
  15. /// 主键
  16. /// </summary>
  17. [Comment("主键")]
  18. [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
  19. public long Id { get; set; }
  20. /// <summary>
  21. /// 名称
  22. /// </summary>
  23. [Comment("名称")]
  24. [StringLength(100)]
  25. public string Name { get; set; }
  26. /// <summary>
  27. /// 是否执行成功
  28. /// </summary>
  29. [Comment("是否执行成功")]
  30. public bool Success { get; set; }
  31. /// <summary>
  32. /// 具体消息
  33. /// </summary>
  34. [Comment("具体消息")]
  35. public string Message { get; set; }
  36. /// <summary>
  37. /// IP
  38. /// </summary>
  39. [Comment("IP")]
  40. [StringLength(20)]
  41. public string Ip { get; set; }
  42. /// <summary>
  43. /// 地址
  44. /// </summary>
  45. [Comment("地址")]
  46. [StringLength(1024)]
  47. public string Location { get; set; }
  48. /// <summary>
  49. /// 浏览器
  50. /// </summary>
  51. [Comment("浏览器")]
  52. [StringLength(100)]
  53. public string Browser { get; set; }
  54. /// <summary>
  55. /// 操作系统
  56. /// </summary>
  57. [Comment("操作系统")]
  58. [StringLength(100)]
  59. public string Os { get; set; }
  60. /// <summary>
  61. /// 请求地址
  62. /// </summary>
  63. [Comment("请求地址")]
  64. [StringLength(100)]
  65. public string Url { get; set; }
  66. /// <summary>
  67. /// 类名称
  68. /// </summary>
  69. [Comment("类名称")]
  70. [StringLength(100)]
  71. public string ClassName { get; set; }
  72. /// <summary>
  73. /// 方法名称
  74. /// </summary>
  75. [Comment("方法名称")]
  76. [StringLength(100)]
  77. public string MethodName { get; set; }
  78. /// <summary>
  79. /// 请求方式(GET POST PUT DELETE)
  80. /// </summary>
  81. [Comment("请求方式")]
  82. [StringLength(10)]
  83. public string ReqMethod { get; set; }
  84. /// <summary>
  85. /// 请求参数
  86. /// </summary>
  87. [Comment("请求参数")]
  88. public string Param { get; set; }
  89. /// <summary>
  90. /// 返回结果
  91. /// </summary>
  92. [Comment("返回结果")]
  93. public string Result { get; set; }
  94. /// <summary>
  95. /// 耗时(毫秒)
  96. /// </summary>
  97. [Comment("耗时")]
  98. public long ElapsedTime { get; set; }
  99. /// <summary>
  100. /// 操作时间
  101. /// </summary>
  102. [Comment("操作时间")]
  103. public DateTime? OpTime { get; set; }
  104. /// <summary>
  105. /// 操作人
  106. /// </summary>
  107. [Comment("操作人")]
  108. [StringLength(50)]
  109. public string Account { get; set; }
  110. }
  111. }