using SqlSugar;
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace GDZZ.Core.Entity;
///
/// 操作日志表
///
[SugarTable("sys_log_op")]
[Description("操作日志表")]
public class SysLogOp : AutoIncrementEntity
{
///
/// 名称
///
[MaxLength(100)]
[SugarColumn(ColumnDescription = "名称", IsNullable = true)]
public string Name { get; set; }
///
/// 是否执行成功(Y-是,N-否)
///
[SugarColumn(ColumnDescription = "是否执行成功(Y-是,N-否)", IsNullable = true)]
public YesOrNot Success { get; set; }
///
/// 具体消息
///
[SugarColumn(ColumnDescription = "具体消息", IsNullable = true)]
public string Message { get; set; }
///
/// IP
///
[MaxLength(20)]
[SugarColumn(ColumnDescription = "IP", IsNullable = true)]
public string Ip { get; set; }
///
/// 地址
///
[MaxLength(500)]
[SugarColumn(ColumnDescription = "地址", IsNullable = true)]
public string Location { get; set; }
///
/// 浏览器
///
[MaxLength(100)]
[SugarColumn(ColumnDescription = "浏览器", IsNullable = true)]
public string Browser { get; set; }
///
/// 操作系统
///
[MaxLength(100)]
[SugarColumn(ColumnDescription = "操作系统", IsNullable = true)]
public string Os { get; set; }
///
/// 请求地址
///
[MaxLength(100)]
[SugarColumn(ColumnDescription = "请求地址", IsNullable = true)]
public string Url { get; set; }
///
/// 类名称
///
[MaxLength(100)]
[SugarColumn(ColumnDescription = "类名称", IsNullable = true)]
public string ClassName { get; set; }
///
/// 方法名称
///
[MaxLength(100)]
[SugarColumn(ColumnDescription = "方法名称", IsNullable = true)]
public string MethodName { get; set; }
///
/// 请求方式(GET POST PUT DELETE)
///
[MaxLength(10)]
[SugarColumn(ColumnDescription = "请求方式(GET POST PUT DELETE)", IsNullable = true)]
public string ReqMethod { get; set; }
///
/// 请求参数
///
[SugarColumn(ColumnDescription = "请求参数", IsNullable = true)]
public string Param { get; set; }
///
/// 返回结果
///
[SugarColumn(ColumnDescription = "返回结果", IsNullable = true)]
public string Result { get; set; }
///
/// 耗时(毫秒)
///
[SugarColumn(ColumnDescription = "耗时(毫秒)", IsNullable = true)]
public long ElapsedTime { get; set; }
///
/// 操作时间
///
[SugarColumn(ColumnDescription = "操作时间", IsNullable = true)]
public DateTime OpTime { get; set; }
///
/// 操作人
///
[MaxLength(20)]
[SugarColumn(ColumnDescription = "操作人", IsNullable = true)]
public string Account { get; set; }
}