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
{
///
/// 请求日志表
///
[SugarTable("httplog")]
public partial class HttpLog : EntityBaseId, IDB
{
///
/// 创建时间
///
public DateTime CreateTime { get; set; } = DateTime.Now;
///
/// 路由
///
[SugarColumn(Length = 500)]
public string Url { get; set; }
///
/// 请求方法类型
///
[SugarColumn(Length = 10)]
public string Method { get; set; }
///
/// 请求来自哪个ip
///
[SugarColumn(IsNullable = true, Length = 30)]
public string IP { get; set; }
///
/// 请求参数
///
[SugarColumn(IsNullable = true, ColumnDataType = "longtext")]
public string? Request { get; set; }
///
/// 请求返回参数
///
[SugarColumn(IsNullable = true, ColumnDataType = "longtext")]
public string? Response { get; set; }
///
/// 响应状态码
///
public int ResponseCode { get; set; }
///
/// 授权信息
///
[SugarColumn(IsNullable = true, Length = 1000)]
public string? Authorization { get; set; }
///
/// 异常完整信息
///
[SugarColumn(IsNullable = true, ColumnDataType = "text")]
public string Exception { get; set; }
///
/// 异常信息
///
[SugarColumn(IsNullable = true, ColumnDataType = "text")]
public string? ExceptionMessage { get; set; }
///
/// 管理员ID
///
public long AdminId { get; set; }
///
/// 总耗时(秒)
///
public double TotalMilliseconds { get; set; }
}
}