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
{
///
/// 操作日志表
///
[SugarTable("OperationLog")]
public class OperationLogEntity : IEntity, ICreationAuditedObject
{
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
public long Id { get; set; }
///
/// 操作模块
///
[SugarColumn(ColumnName = "Title")]
public string? Title { get; set; }
///
/// 操作类型
///
[SugarColumn(ColumnName = "OperType")]
public OperEnum OperType { get; set; }
///
/// 请求方法
///
[SugarColumn(ColumnName = "RequestMethod")]
public string? RequestMethod { get; set; }
///
/// 操作人员
///
[SugarColumn(ColumnName = "OperUser")]
public string? OperUser { get; set; }
///
/// 操作Ip
///
[SugarColumn(ColumnName = "OperIp")]
public string? OperIp { get; set; }
///
/// 操作地点
///
[SugarColumn(ColumnName = "OperLocation")]
public string? OperLocation { get; set; }
///
/// 操作方法
///
[SugarColumn(ColumnName = "Method")]
public string? Method { get; set; }
///
/// 请求参数
///
[SugarColumn(ColumnName = "RequestParam")]
public string? RequestParam { get; set; }
///
/// 请求结果
///
[SugarColumn(ColumnName = "RequestResult",Length =9999)]
public string? RequestResult { get; set; }
public DateTime CreationTime { get; set; }
public long? CreatorId { get; set; }
}
}