You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
97 lines
2.9 KiB
97 lines
2.9 KiB
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
|
|
{
|
|
/// <summary>
|
|
/// 操作日志
|
|
/// </summary>
|
|
[SugarTable("SysLogOperate", "操作日志")]
|
|
public class LogOperationEntity : EntityCreateBase
|
|
{
|
|
/// <summary>
|
|
/// 请求类型
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "请求类型",Length =8, IsNullable = true)]
|
|
public string? HttpMethod { get; set; }
|
|
/// <summary>
|
|
/// 请求Url
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "请求Url", IsNullable = true)]
|
|
public string? RequestUrl { get; set; }
|
|
/// <summary>
|
|
/// 请求内容
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "请求内容", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
|
|
public string? RequestParam { get; set; }
|
|
/// <summary>
|
|
/// 返回内容
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "返回内容", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
|
|
public string? ReturnResult { get; set; }
|
|
/// <summary>
|
|
/// 信息
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "信息", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
|
|
public string? Message { get; set; }
|
|
/// <summary>
|
|
/// Controller
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "Controller", Length =64, IsNullable = true)]
|
|
public string? ControllerName { get; set; }
|
|
/// <summary>
|
|
/// Action
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "Action", Length = 64, IsNullable = true)]
|
|
public string? ActionName { get; set; }
|
|
|
|
/// <summary>
|
|
/// MethodName
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "Action", Length = 256, IsNullable = true)]
|
|
public string? MethodName { get; set; }
|
|
/// <summary>
|
|
/// 浏览器
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "浏览器", Length = 1024, IsNullable = true)]
|
|
public string? Browser { get; set; }
|
|
/// <summary>
|
|
/// 系统
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "系统", IsNullable = true)]
|
|
public string? Os { get; set; }
|
|
/// <summary>
|
|
/// 请求时间
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "请求时间")]
|
|
public int Elapsed { get; set; } = 0;
|
|
/// <summary>
|
|
/// ip
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "ip",Length =128, IsNullable = true)]
|
|
public string? IpAddress { get; set; }
|
|
|
|
/// <summary>
|
|
/// log 时间
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "log 时间", IsNullable = true)]
|
|
public DateTime? LogDateTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 用户账号
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "用户账号", Length = 64, IsNullable = true)]
|
|
public string? UserName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 用户姓名
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "用户姓名", Length = 16, IsNullable = true)]
|
|
public string? RealName { get; set; }
|
|
}
|
|
}
|
|
|