hutongqing
2024-11-20 0845150c79d1ebd664753931933e786ed8bd06c4
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SqlSugar;
using WIDESEA_Core.DB.Models;
using WIDESEA_Core.Tenants;
 
namespace WIDESEA_Model.Models
{
    [MultiTenant]
    public class Sys_Log
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]
        public int Id { get; set; }
 
        /// <summary>
        /// 开始时间
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "开始时间")]
        public DateTime? BeginDate { get; set; }
 
        /// <summary>
        /// 时长
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "时长")]
        public int? ElapsedTime { get; set; }
 
        /// <summary>
        /// 结束时间
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "结束时间")]
        public DateTime EndDate { get; set; }
 
        /// <summary>
        /// 日志类型
        /// </summary>
        //[SugarColumn(IsNullable = true, ColumnDescription = "日志类型")]
        //public DateTime LogType { get; set; }
 
        /// <summary>
        /// 请求参数
        /// </summary>
        [SugarColumn(IsNullable = true, Length = 2000, ColumnDescription = "请求参数")]
        public string RequestParam { get; set; }
 
        /// <summary>
        /// 响应参数
        /// </summary>
        [SugarColumn(IsNullable = true, Length = 2000, ColumnDescription = "响应参数")]
        public string ResponseParam { get; set; }
 
        /// <summary>
        /// 响应状态
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "响应状态")]
        public int? Success { get; set; }
 
        /// <summary>
        /// 请求地址
        /// </summary>
        [SugarColumn(IsNullable = true, Length = 2000, ColumnDescription = "请求地址")]
        public string Url { get; set; }
 
        /// <summary>
        /// 用户IP
        /// </summary>
        [SugarColumn(IsNullable = true, Length = 20, ColumnDescription = "用户IP")]
        public string UserIP { get; set; }
 
        /// <summary>
        /// 用户名称
        /// </summary>
        [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "用户名称")]
        public string UserName { get; set; }
 
        /// <summary>
        /// 用户主键
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "用户主键")]
        public int? User_Id { get; set; }
    }
}