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

LoggingMonitorJson.cs 4.1 KiB

4 months ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. 
  2. //
  3. namespace SafeCampus.Web.Core;
  4. /// <summary>
  5. /// 请求信息格式化
  6. /// </summary>
  7. public class LoggingMonitorJson
  8. {
  9. /// <summary>
  10. /// 标题
  11. /// </summary>
  12. public string Title { get; set; }
  13. /// <summary>
  14. /// 操作名称
  15. /// </summary>
  16. public string DisplayTitle { get; set; }
  17. /// <summary>
  18. /// 控制器名
  19. /// </summary>
  20. public string ControllerName { get; set; }
  21. /// <summary>
  22. /// 方法名称
  23. /// </summary>
  24. public string ActionName { get; set; }
  25. /// <summary>
  26. /// 类名称
  27. /// </summary>
  28. public string DisplayName { get; set; }
  29. /// <summary>
  30. /// 服务端
  31. /// </summary>
  32. public string LocalIPv4 { get; set; }
  33. /// <summary>
  34. /// 客户端IPV4地址
  35. /// </summary>
  36. public string RemoteIPv4 { get; set; }
  37. /// <summary>
  38. /// 请求方法
  39. /// </summary>
  40. public string HttpMethod { get; set; }
  41. /// <summary>
  42. /// 请求地址
  43. /// </summary>
  44. public string RequestUrl { get; set; }
  45. /// <summary>
  46. /// 浏览器标识
  47. /// </summary>
  48. public string UserAgent { get; set; }
  49. /// <summary>
  50. /// 系统名称
  51. /// </summary>
  52. public string OsDescription { get; set; }
  53. /// <summary>
  54. /// 系统架构
  55. /// </summary>
  56. public string OsArchitecture { get; set; }
  57. /// <summary>
  58. /// 环境
  59. /// </summary>
  60. public string Environment { get; set; }
  61. /// <summary>
  62. /// 认证信息
  63. /// </summary>
  64. public List<AuthorizationClaims> AuthorizationClaims { get; set; }
  65. /// <summary>
  66. /// 参数列表
  67. /// </summary>
  68. public List<Parameters> Parameters { get; set; }
  69. /// <summary>
  70. /// 返回信息
  71. /// </summary>
  72. public ReturnInformation ReturnInformation { get; set; }
  73. /// <summary>
  74. /// 异常信息
  75. /// </summary>
  76. public Exception Exception { get; set; }
  77. /// <summary>
  78. /// 验证错误信息
  79. /// </summary>
  80. public Validation Validation { get; set; }
  81. /// <summary>
  82. /// 日志时间
  83. /// </summary>
  84. public DateTime LogDateTime { get; set; }
  85. }
  86. /// <summary>
  87. /// 认证信息
  88. /// </summary>
  89. public class AuthorizationClaims
  90. {
  91. /// <summary>
  92. /// 类型
  93. /// </summary>
  94. public string Type { get; set; }
  95. /// <summary>
  96. /// 值
  97. /// </summary>
  98. public string Value { get; set; }
  99. }
  100. /// <summary>
  101. /// 请求参数
  102. /// </summary>
  103. public class Parameters
  104. {
  105. /// <summary>
  106. /// 参数名
  107. /// </summary>
  108. public string Name { get; set; }
  109. /// <summary>
  110. /// 值
  111. /// </summary>
  112. public object Value { get; set; }
  113. }
  114. /// <summary>
  115. /// 返回信息
  116. /// </summary>
  117. public class ReturnInformation
  118. {
  119. /// <summary>
  120. /// 返回值
  121. /// </summary>
  122. public ReturnValue Value { get; set; }
  123. public class ReturnValue
  124. {
  125. /// <summary>
  126. /// 返回码
  127. /// </summary>
  128. public int Code { get; set; }
  129. /// <summary>
  130. /// 消息
  131. /// </summary>
  132. public string Msg { get; set; }
  133. /// <summary>
  134. /// 额外信息
  135. /// </summary>
  136. public object Extras { get; set; }
  137. /// <summary>
  138. /// 内如
  139. /// </summary>
  140. public object Data { get; set; }
  141. /// <summary>
  142. /// 时间
  143. /// </summary>
  144. public string Time { get; set; }
  145. }
  146. }
  147. /// <summary>
  148. /// 异常信息
  149. /// </summary>
  150. public class Exception
  151. {
  152. /// <summary>
  153. /// 异常类型
  154. /// </summary>
  155. public string Type { get; set; }
  156. /// <summary>
  157. /// 异常内容
  158. /// </summary>
  159. public string Message { get; set; }
  160. /// <summary>
  161. /// 堆栈信息
  162. /// </summary>
  163. public string StackTrace { get; set; }
  164. }
  165. /// <summary>
  166. /// 验证失败信息
  167. /// </summary>
  168. public class Validation
  169. {
  170. ///// <summary>
  171. ///// 错误码
  172. ///// </summary>
  173. //public string ErrorCode { get; set; }
  174. ///// <summary>
  175. ///// 错误码
  176. ///// </summary>
  177. //public string OriginErrorCode { get; set; }
  178. /// <summary>
  179. /// 错误详情
  180. /// </summary>
  181. public string Message { get; set; }
  182. }