|
|
using System.ComponentModel;
|
|
|
using SqlSugar;
|
|
|
|
|
|
namespace DS.Module.Core.Log;
|
|
|
|
|
|
/// <summary>
|
|
|
/// 系统操作日志
|
|
|
/// </summary>
|
|
|
[global::SqlSugar.SugarTable("sys_log_operation")]
|
|
|
public class SysLogOperation
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// ID
|
|
|
/// </summary>
|
|
|
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 业务id
|
|
|
/// </summary>
|
|
|
public long? KeyId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// 是否执行成功(true-是,false-否)
|
|
|
/// </summary>
|
|
|
public bool Success { get; set; } = true;
|
|
|
|
|
|
/// <summary>
|
|
|
/// 请求参数
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnDescription = "请求参数", IsNullable = true, ColumnDataType=StaticConfig.CodeFirst_BigString)]
|
|
|
public string Param { get; set; }
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// IP
|
|
|
/// </summary>
|
|
|
public string Ip { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 地址
|
|
|
/// </summary>
|
|
|
public string Location { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 浏览器
|
|
|
/// </summary>
|
|
|
public string Browser { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 操作系统
|
|
|
/// </summary>
|
|
|
public string Os { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 请求地址
|
|
|
/// </summary>
|
|
|
public string Url { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 类名称
|
|
|
/// </summary>
|
|
|
public string ClassName { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 方法名称
|
|
|
/// </summary>
|
|
|
public string MethodName { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 请求方式(GET POST PUT DELETE)
|
|
|
/// </summary>
|
|
|
public string ReqMethod { get; set; }
|
|
|
/// <summary>
|
|
|
/// 返回结果
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnDescription = "返回结果", IsNullable = true, ColumnDataType=StaticConfig.CodeFirst_BigString)]
|
|
|
public string Result { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 耗时(毫秒)
|
|
|
/// </summary>
|
|
|
public long ElapsedTime { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 操作时间
|
|
|
/// </summary>
|
|
|
public DateTime OpTime { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 创建时间
|
|
|
/// </summary>
|
|
|
[Description("创建时间")]
|
|
|
[SqlSugar.SugarColumn(IsOnlyIgnoreUpdate = true, ColumnDescription = "创建时间")]
|
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 创建人
|
|
|
/// </summary>
|
|
|
[Description("创建人")]
|
|
|
[SqlSugar.SugarColumn(IsOnlyIgnoreUpdate = true, IsNullable = true, ColumnDescription = "创建人")]
|
|
|
public long CreateBy { get; set; }
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// 租户id
|
|
|
/// </summary>
|
|
|
public long? TenantId { get; set; }
|
|
|
|
|
|
} |