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

226 lines
4.1 KiB

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