forked from anjoy8/Blog.Core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRequestInfo.cs
More file actions
109 lines (100 loc) · 2.86 KB
/
RequestInfo.cs
File metadata and controls
109 lines (100 loc) · 2.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
using System.Collections.Generic;
namespace Blog.Core.Common.LogHelper
{
public class ApiWeek
{
public string week { get; set; }
public string url { get; set; }
public int count { get; set; }
}
public class ApiDate
{
public string date { get; set; }
public int count { get; set; }
}
public class ActiveUserVM
{
public string user { get; set; }
public int count { get; set; }
}
public class RequestApiWeekView
{
public List<string> columns { get; set; }
public string rows { get; set; }
}
public class AccessApiDateView
{
public string[] columns { get; set; }
public List<ApiDate> rows { get; set; }
}
public class RequestInfo
{
public string Ip { get; set; }
public string Url { get; set; }
public string Datetime { get; set; }
public string Date { get; set; }
public string Week { get; set; }
}
public class AOPLogInfo
{
/// <summary>
/// 请求时间
/// </summary>
public string RequestTime { get; set; } = string.Empty;
/// <summary>
/// 操作人员
/// </summary>
public string OpUserName { get; set; } = string.Empty;
/// <summary>
/// 请求方法名
/// </summary>
public string RequestMethodName { get; set; } = string.Empty;
/// <summary>
/// 请求参数名
/// </summary>
public string RequestParamsName { get; set; } = string.Empty;
/// <summary>
/// 请求参数数据JSON
/// </summary>
public string RequestParamsData { get; set; } = string.Empty;
/// <summary>
/// 请求响应间隔时间
/// </summary>
public string ResponseIntervalTime { get; set; } = string.Empty;
/// <summary>
/// 响应时间
/// </summary>
public string ResponseTime { get; set; } = string.Empty;
/// <summary>
/// 响应结果
/// </summary>
public string ResponseJsonData { get; set; } = string.Empty;
}
public class AOPLogExInfo
{
public AOPLogInfo ApiLogAopInfo { get; set; }
/// <summary>
/// 异常
/// </summary>
public string InnerException { get; set; } = string.Empty;
/// <summary>
/// 异常信息
/// </summary>
public string ExMessage { get; set; } = string.Empty;
}
public class RequestLogInfo
{
/// <summary>
/// 请求地址
/// </summary>
public string Path { get; set; }
/// <summary>
/// 请求参数
/// </summary>
public string QueryString { get; set; }
/// <summary>
/// Body参数
/// </summary>
public string BodyData { get; set; }
}
}