namespace ZR.Model.System
{
[SugarTable("sys_oper_log", "操作日志表")]
[Tenant("0")]
public class SysOperLog
{
///
/// 操作id
///
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public long OperId { get; set; }
///
/// 操作模块
///
public string Title { get; set; }
///
/// 业务类型(0其它 1新增 2修改 3删除 4=授权,5=导出,6=导入,7=强退,8=生成代码,9=清空数据)
///
[SugarColumn(DefaultValue = "0")]
public int BusinessType { get; set; }
///
/// 业务类型数组
///
[SugarColumn(IsIgnore = true)]
[ExcelIgnore]
public int[] BusinessTypes { get; set; }
///
/// 请求方法
///
public string Method { get; set; }
///
/// 请求方式
///
public string RequestMethod { get; set; }
///
/// 操作类别(0其它 1后台用户 2手机端用户)
///
//@Excel(name = "操作类别", readConverterExp = "0=其它,1=后台用户,2=手机端用户")
[SugarColumn(DefaultValue = "0")]
public int OperatorType { get; set; }
///
/// 操作人员
///
public string OperName { get; set; }
///
/// 请求url
///
public string OperUrl { get; set; }
///
/// 操作地址
///
public string OperIp { get; set; }
///
/// 操作地点
///
public string OperLocation { get; set; }
///
/// 请求参数
///
[SugarColumn(Length = 4000)]
public string OperParam { get; set; }
///
/// 返回参数
///
[SugarColumn(ColumnDataType = StaticConfig.CodeFirst_BigString)]
public string JsonResult { get; set; }
///
/// 操作状态(0正常 1异常)
///
[SugarColumn(DefaultValue = "0")]
public int Status { get; set; }
///
/// 错误消息
///
[SugarColumn(Length = 4000)]
public string ErrorMsg { get; set; }
///
/// 操作时间
///
public DateTime? OperTime { get; set; }
///
/// 操作用时
///
public long Elapsed { get; set; }
public string DeptName { get; set; }
}
}