using SqlSugar;
using System.ComponentModel.DataAnnotations;
namespace Admin.NET.Core
{
///
/// 系统操作日志表
///
[SugarTable("sys_log_op", "系统操作日志表")]
[SqlSugarEntity]
public class SysLogOp : EntityBase
{
///
/// 是否执行成功(Y-是,N-否)
///
[SugarColumn(ColumnDescription = "是否执行成功")]
public YesNoEnum Success { get; set; }
///
/// 具体消息
///
[SugarColumn(ColumnDescription = "具体消息", ColumnDataType = "text")]
public string Message { get; set; }
///
/// IP地址
///
[SugarColumn(ColumnDescription = "IP地址", Length = 20)]
[MaxLength(20)]
public string Ip { get; set; }
///
/// 地址
///
[SugarColumn(ColumnDescription = "地址", Length = 100)]
[MaxLength(100)]
public string Location { get; set; }
///
/// 浏览器
///
[SugarColumn(ColumnDescription = "浏览器", Length = 100)]
[MaxLength(100)]
public string Browser { get; set; }
///
/// 操作系统
///
[SugarColumn(ColumnDescription = "操作系统", Length = 100)]
[MaxLength(100)]
public string Os { get; set; }
///
/// 请求地址
///
[SugarColumn(ColumnDescription = "请求地址", Length = 100)]
[MaxLength(100)]
public string Url { get; set; }
///
/// 类名称
///
[SugarColumn(ColumnDescription = "类名称", Length = 100)]
[MaxLength(100)]
public string ClassName { get; set; }
///
/// 方法名称
///
[SugarColumn(ColumnDescription = "方法名称", Length = 100)]
[MaxLength(100)]
public string MethodName { get; set; }
///
/// 请求方式(GET POST PUT DELETE)
///
[SugarColumn(ColumnDescription = "请求方式", Length = 10)]
[MaxLength(10)]
public string ReqMethod { get; set; }
///
/// 请求参数
///
[SugarColumn(ColumnDescription = "请求参数", ColumnDataType = "text")]
public string Param { get; set; }
///
/// 返回结果
///
[SugarColumn(ColumnDescription = "返回结果", ColumnDataType = "text")]
public string Result { get; set; }
///
/// 耗时(毫秒)
///
[SugarColumn(ColumnDescription = "耗时")]
public long ElapsedTime { get; set; }
///
/// 账号名称
///
[SugarColumn(ColumnDescription = "账号名称", Length = 20)]
[MaxLength(20)]
public string UserName { get; set; }
///
/// 真实姓名
///
[SugarColumn(ColumnDescription = "真实姓名", Length = 20)]
[MaxLength(20)]
public string RealName { get; set; }
}
}