70 lines
2.1 KiB
C#
70 lines
2.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text.Json.Serialization;
|
|
using SqlSugar;
|
|
using Yi.Framework.Data.Auditing;
|
|
using Yi.Framework.Ddd.Entities;
|
|
|
|
namespace Yi.Framework.OperLogManager
|
|
{
|
|
/// <summary>
|
|
/// 操作日志表
|
|
///</summary>
|
|
[SugarTable("OperationLog")]
|
|
public class OperationLogEntity : IEntity<long>, ICreationAuditedObject
|
|
{
|
|
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
|
|
public long Id { get; set; }
|
|
/// <summary>
|
|
/// 操作模块
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "Title")]
|
|
public string? Title { get; set; }
|
|
/// <summary>
|
|
/// 操作类型
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "OperType")]
|
|
public OperEnum OperType { get; set; }
|
|
/// <summary>
|
|
/// 请求方法
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "RequestMethod")]
|
|
public string? RequestMethod { get; set; }
|
|
/// <summary>
|
|
/// 操作人员
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "OperUser")]
|
|
public string? OperUser { get; set; }
|
|
/// <summary>
|
|
/// 操作Ip
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "OperIp")]
|
|
public string? OperIp { get; set; }
|
|
/// <summary>
|
|
/// 操作地点
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "OperLocation")]
|
|
public string? OperLocation { get; set; }
|
|
/// <summary>
|
|
/// 操作方法
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "Method")]
|
|
public string? Method { get; set; }
|
|
/// <summary>
|
|
/// 请求参数
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "RequestParam")]
|
|
public string? RequestParam { get; set; }
|
|
/// <summary>
|
|
/// 请求结果
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "RequestResult",Length =9999)]
|
|
public string? RequestResult { get; set; }
|
|
|
|
public DateTime CreationTime { get; set; }
|
|
|
|
public long? CreatorId { get; set; }
|
|
}
|
|
}
|