using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Wood.Entity.SystemManage
{
///
/// 操作日志
///
[SugarTable("SysLogOperate", "操作日志")]
public class LogOperationEntity : EntityCreateBase
{
///
/// 请求类型
///
[SugarColumn(ColumnDescription = "请求类型",Length =8, IsNullable = true)]
public string? HttpMethod { get; set; }
///
/// 请求Url
///
[SugarColumn(ColumnDescription = "请求Url", IsNullable = true)]
public string? RequestUrl { get; set; }
///
/// 请求内容
///
[SugarColumn(ColumnDescription = "请求内容", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string? RequestParam { get; set; }
///
/// 返回内容
///
[SugarColumn(ColumnDescription = "返回内容", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string? ReturnResult { get; set; }
///
/// 信息
///
[SugarColumn(ColumnDescription = "信息", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string? Message { get; set; }
///
/// Controller
///
[SugarColumn(ColumnDescription = "Controller", Length =64, IsNullable = true)]
public string? ControllerName { get; set; }
///
/// Action
///
[SugarColumn(ColumnDescription = "Action", Length = 64, IsNullable = true)]
public string? ActionName { get; set; }
///
/// MethodName
///
[SugarColumn(ColumnDescription = "Action", Length = 256, IsNullable = true)]
public string? MethodName { get; set; }
///
/// 浏览器
///
[SugarColumn(ColumnDescription = "浏览器", Length = 1024, IsNullable = true)]
public string? Browser { get; set; }
///
/// 系统
///
[SugarColumn(ColumnDescription = "系统", IsNullable = true)]
public string? Os { get; set; }
///
/// 请求时间
///
[SugarColumn(ColumnDescription = "请求时间")]
public int Elapsed { get; set; } = 0;
///
/// ip
///
[SugarColumn(ColumnDescription = "ip",Length =128, IsNullable = true)]
public string? IpAddress { get; set; }
///
/// log 时间
///
[SugarColumn(ColumnDescription = "log 时间", IsNullable = true)]
public DateTime? LogDateTime { get; set; }
///
/// 用户账号
///
[SugarColumn(ColumnDescription = "用户账号", Length = 64, IsNullable = true)]
public string? UserName { get; set; }
///
/// 用户姓名
///
[SugarColumn(ColumnDescription = "用户姓名", Length = 16, IsNullable = true)]
public string? RealName { get; set; }
}
}