You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

105 lines
2.3 KiB
C#

1 year ago
using System;
using SqlSugar;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Admin.Core.Model
{
///<summary>
///操作日志记录实体类
///</summary>
[Table("SysOperLog")]
[SugarTable( "SysOperLog", "admin_sqlite")]
public class SysOperLog
{
/// <summary>
/// 日志主键
/// </summary>
[Key]
[SugarColumn(IsPrimaryKey=true,IsIdentity=true)]
[Required]
public int OperID { get; set; }
/// <summary>
/// 模块标题
/// </summary>
public string Title { get; set; }
/// <summary>
/// 业务类型0其它 1新增 2修改 3删除
/// </summary>
public int? BusinessType { get; set; }
/// <summary>
/// 方法名称
/// </summary>
public string Method { get; set; }
/// <summary>
/// 请求方式
/// </summary>
public string RequestMethod { get; set; }
/// <summary>
/// 操作类别0其它 1后台用户 2手机端用户
/// </summary>
public int? OperatorType { get; set; }
/// <summary>
/// 操作人员
/// </summary>
public string OperName { get; set; }
/// <summary>
/// 部门名称
/// </summary>
public string DeptName { get; set; }
/// <summary>
/// 请求URL
/// </summary>
public string OperUrl { get; set; }
/// <summary>
/// 主机地址
/// </summary>
public string OperIP { get; set; }
/// <summary>
/// 操作地点
/// </summary>
public string OperLocation { get; set; }
/// <summary>
/// 请求参数
/// </summary>
public string OperParam { get; set; }
/// <summary>
/// 返回参数
/// </summary>
public string JsonResult { get; set; }
/// <summary>
/// 操作状态0正常 1异常
/// </summary>
public int? Status { get; set; }
/// <summary>
/// 消息
/// </summary>
public string Msg { get; set; }
/// <summary>
/// 响应耗时(毫秒)
/// </summary>
public string OPTimer { get; set; }
/// <summary>
/// 操作时间
/// </summary>
public DateTime? OperTime { get; set; }
}
}