// Copyright (c) 2022-Now 少林寺驻北固山办事处大神父王喇嘛 // // SimpleAdmin 基于 Apache License Version 2.0 协议发布,可用于商业项目,但必须遵守以下补充条款: // 1.请不要删除和修改根目录下的LICENSE文件。 // 2.请不要删除和修改SimpleAdmin源码头部的版权声明。 // 3.分发源码时候,请注明软件出处 https://gitee.com/dotnetmoyu/SimpleAdmin // 4.基于本软件的作品,只能使用 SimpleAdmin 作为后台服务,除外情况不可商用且不允许二次分发或开源。 // 5.请不得将本软件应用于危害国家安全、荣誉和利益的行为,不能以任何形式用于非法为目的的行为。 // 6.任何基于本软件而产生的一切法律纠纷和责任,均于我司无关。 namespace SimpleAdmin.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; } }