Learn.VideoAnalysis/VideoAnalysisCore/Model/HttpLog.cs

80 lines
2.3 KiB
C#

using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection.Metadata.Ecma335;
using System.Text;
using System.Threading.Tasks;
using UserCenter.Model;
using VideoAnalysisCore.Model.Interface;
namespace VideoAnalysisCore.Model
{
///<summary>
/// 请求日志表
///</summary>
[SugarTable("httplog")]
public partial class HttpLog : EntityBaseId, IDB
{
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreateTime { get; set; } = DateTime.Now;
/// <summary>
/// 路由
/// </summary>
[SugarColumn(Length = 500)]
public string Url { get; set; }
/// <summary>
/// 请求方法类型
/// </summary>
[SugarColumn(Length = 10)]
public string Method { get; set; }
/// <summary>
/// 请求来自哪个ip
/// </summary>
[SugarColumn(IsNullable = true, Length = 30)]
public string IP { get; set; }
/// <summary>
/// 请求参数
/// </summary>
[SugarColumn(IsNullable = true, ColumnDataType = "longtext")]
public string? Request { get; set; }
/// <summary>
/// 请求返回参数
/// </summary>
[SugarColumn(IsNullable = true, ColumnDataType = "longtext")]
public string? Response { get; set; }
/// <summary>
/// 响应状态码
/// </summary>
public int ResponseCode { get; set; }
/// <summary>
/// 授权信息
/// </summary>
[SugarColumn(IsNullable = true, Length = 500)]
public string? Authorization { get; set; }
/// <summary>
/// 异常完整信息
/// </summary>
[SugarColumn(IsNullable = true, ColumnDataType = "text")]
public string Exception { get; set; }
/// <summary>
/// 异常信息
/// </summary>
[SugarColumn(IsNullable = true, ColumnDataType = "text")]
public string? ExceptionMessage { get; set; }
/// <summary>
/// 管理员ID
/// </summary>
public long AdminId { get; set; }
/// <summary>
/// 总耗时(秒)
/// </summary>
public double TotalMilliseconds { get; set; }
}
}