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