//
namespace SafeCampus.Web.Core;
///
/// 请求信息格式化
///
public class LoggingMonitorJson
{
///
/// 标题
///
public string Title { get; set; }
///
/// 操作名称
///
public string DisplayTitle { get; set; }
///
/// 控制器名
///
public string ControllerName { get; set; }
///
/// 方法名称
///
public string ActionName { get; set; }
///
/// 类名称
///
public string DisplayName { get; set; }
///
/// 服务端
///
public string LocalIPv4 { get; set; }
///
/// 客户端IPV4地址
///
public string RemoteIPv4 { get; set; }
///
/// 请求方法
///
public string HttpMethod { get; set; }
///
/// 请求地址
///
public string RequestUrl { get; set; }
///
/// 浏览器标识
///
public string UserAgent { get; set; }
///
/// 系统名称
///
public string OsDescription { get; set; }
///
/// 系统架构
///
public string OsArchitecture { get; set; }
///
/// 环境
///
public string Environment { get; set; }
///
/// 认证信息
///
public List AuthorizationClaims { get; set; }
///
/// 参数列表
///
public List Parameters { get; set; }
///
/// 返回信息
///
public ReturnInformation ReturnInformation { get; set; }
///
/// 异常信息
///
public Exception Exception { get; set; }
///
/// 验证错误信息
///
public Validation Validation { get; set; }
///
/// 日志时间
///
public DateTime LogDateTime { get; set; }
}
///
/// 认证信息
///
public class AuthorizationClaims
{
///
/// 类型
///
public string Type { get; set; }
///
/// 值
///
public string Value { get; set; }
}
///
/// 请求参数
///
public class Parameters
{
///
/// 参数名
///
public string Name { get; set; }
///
/// 值
///
public object Value { get; set; }
}
///
/// 返回信息
///
public class ReturnInformation
{
///
/// 返回值
///
public ReturnValue Value { get; set; }
public class ReturnValue
{
///
/// 返回码
///
public int Code { get; set; }
///
/// 消息
///
public string Msg { get; set; }
///
/// 额外信息
///
public object Extras { get; set; }
///
/// 内如
///
public object Data { get; set; }
///
/// 时间
///
public string Time { get; set; }
}
}
///
/// 异常信息
///
public class Exception
{
///
/// 异常类型
///
public string Type { get; set; }
///
/// 异常内容
///
public string Message { get; set; }
///
/// 堆栈信息
///
public string StackTrace { get; set; }
}
///
/// 验证失败信息
///
public class Validation
{
/////
///// 错误码
/////
//public string ErrorCode { get; set; }
/////
///// 错误码
/////
//public string OriginErrorCode { get; set; }
///
/// 错误详情
///
public string Message { get; set; }
}