shgx_tz_mom/ZR.Model/System/SysOperLog.cs

87 lines
2.7 KiB
C#
Raw Normal View History

2021-08-23 16:57:25 +08:00
using Newtonsoft.Json;
2021-11-27 09:43:04 +08:00
using SqlSugar;
2021-08-23 16:57:25 +08:00
using System;
using System.Collections.Generic;
using System.Text;
namespace ZR.Model.System
{
2021-11-27 09:43:04 +08:00
[SugarTable("sys_oper_log")]
[Tenant("0")]
2021-08-23 16:57:25 +08:00
public class SysOperLog
{
2021-11-27 09:43:04 +08:00
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
2021-08-23 16:57:25 +08:00
public long OperId { get; set; }
/** 操作模块 */
//@Excel(name = "操作模块")
2021-11-27 09:43:04 +08:00
public string title { get; set; }
2021-08-23 16:57:25 +08:00
/** 业务类型0其它 1新增 2修改 3删除 */
//@Excel(name = "业务类型", readConverterExp = "0=其它,1=新增,2=修改,3=删除,4=授权,5=导出,6=导入,7=强退,8=生成代码,9=清空数据")
public int businessType { get; set; }
/** 业务类型数组 */
2021-11-27 09:43:04 +08:00
[SugarColumn(IsIgnore = true)]
2021-08-23 16:57:25 +08:00
public int[] businessTypes { get; set; }
/** 请求方法 */
//@Excel(name = "请求方法")
public String method { get; set; }
/** 请求方式 */
//@Excel(name = "请求方式")
public String requestMethod { get; set; }
/** 操作类别0其它 1后台用户 2手机端用户 */
//@Excel(name = "操作类别", readConverterExp = "0=其它,1=后台用户,2=手机端用户")
public int operatorType { get; set; }
/** 操作人员 */
//@Excel(name = "操作人员")
public String operName { get; set; }
/** 部门名称 */
//@Excel(name = "部门名称")
public String deptName { get; set; }
/** 请求url */
//@Excel(name = "请求地址")
public String operUrl { get; set; }
/** 操作地址 */
//@Excel(name = "操作地址")
public String operIp { get; set; }
/** 操作地点 */
//@Excel(name = "操作地点")
public String operLocation { get; set; }
/** 请求参数 */
//@Excel(name = "请求参数")
public String operParam { get; set; }
/** 返回参数 */
//@Excel(name = "返回参数")
public String jsonResult { get; set; }
/** 操作状态0正常 1异常 */
//@Excel(name = "状态", readConverterExp = "0=正常,1=异常")
public int status { get; set; }
/** 错误消息 */
//@Excel(name = "错误消息")
public String errorMsg { get; set; }
/** 操作时间 */
//@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//@Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
//[DataType]
[JsonConverter(typeof(JsonDateConverter))]
public DateTime? operTime { get; set; }
/// <summary>
/// 操作用时
/// </summary>
public long Elapsed { get; set; }
}
}