2022-12-08 16:53:47 +08:00
|
|
|
|
using MiniExcelLibs.Attributes;
|
2021-11-27 09:43:04 +08:00
|
|
|
|
using SqlSugar;
|
2021-08-23 16:57:25 +08:00
|
|
|
|
using System;
|
2022-12-08 16:53:47 +08:00
|
|
|
|
using System.ComponentModel;
|
2021-08-23 16:57:25 +08:00
|
|
|
|
|
|
|
|
|
|
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; }
|
2023-02-17 11:00:26 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 操作模块
|
|
|
|
|
|
/// </summary>
|
2022-12-08 16:53:47 +08:00
|
|
|
|
[DisplayName("操作模块")]
|
2022-09-01 21:54:53 +08:00
|
|
|
|
public string Title { get; set; }
|
2021-08-23 16:57:25 +08:00
|
|
|
|
|
2023-02-17 11:00:26 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 业务类型(0其它 1新增 2修改 3删除 4=授权,5=导出,6=导入,7=强退,8=生成代码,9=清空数据)
|
|
|
|
|
|
/// </summary>
|
2022-12-08 16:53:47 +08:00
|
|
|
|
[DisplayName("业务类型")]
|
2022-09-01 21:54:53 +08:00
|
|
|
|
public int BusinessType { get; set; }
|
2021-08-23 16:57:25 +08:00
|
|
|
|
|
2023-02-17 11:00:26 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 业务类型数组
|
|
|
|
|
|
/// </summary>
|
2021-11-27 09:43:04 +08:00
|
|
|
|
[SugarColumn(IsIgnore = true)]
|
2022-12-08 16:53:47 +08:00
|
|
|
|
[ExcelIgnore]
|
2022-09-01 21:54:53 +08:00
|
|
|
|
public int[] BusinessTypes { get; set; }
|
2021-08-23 16:57:25 +08:00
|
|
|
|
|
2023-02-17 11:00:26 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 请求方法
|
|
|
|
|
|
/// </summary>
|
2022-12-08 16:53:47 +08:00
|
|
|
|
[DisplayName("请求方法")]
|
2022-09-01 21:54:53 +08:00
|
|
|
|
public string Method { get; set; }
|
2021-08-23 16:57:25 +08:00
|
|
|
|
|
2023-02-17 11:00:26 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 请求方式
|
|
|
|
|
|
/// </summary>
|
2022-12-08 16:53:47 +08:00
|
|
|
|
[DisplayName("请求方式")]
|
2022-09-01 21:54:53 +08:00
|
|
|
|
public string RequestMethod { get; set; }
|
2021-08-23 16:57:25 +08:00
|
|
|
|
|
|
|
|
|
|
/** 操作类别(0其它 1后台用户 2手机端用户) */
|
|
|
|
|
|
//@Excel(name = "操作类别", readConverterExp = "0=其它,1=后台用户,2=手机端用户")
|
2022-12-08 16:53:47 +08:00
|
|
|
|
[DisplayName("操作类别")]
|
2022-09-01 21:54:53 +08:00
|
|
|
|
public int OperatorType { get; set; }
|
2021-08-23 16:57:25 +08:00
|
|
|
|
|
|
|
|
|
|
/** 操作人员 */
|
2022-12-08 16:53:47 +08:00
|
|
|
|
[DisplayName("操作人员")]
|
2022-09-01 21:54:53 +08:00
|
|
|
|
public string OperName { get; set; }
|
2021-08-23 16:57:25 +08:00
|
|
|
|
|
|
|
|
|
|
/** 部门名称 */
|
2022-12-14 18:45:30 +08:00
|
|
|
|
//[DisplayName("部门名称")]
|
|
|
|
|
|
//public string DeptName { get; set; }
|
2021-08-23 16:57:25 +08:00
|
|
|
|
|
|
|
|
|
|
/** 请求url */
|
2022-12-08 16:53:47 +08:00
|
|
|
|
[DisplayName("请求地址")]
|
2022-09-01 21:54:53 +08:00
|
|
|
|
public string OperUrl { get; set; }
|
2021-08-23 16:57:25 +08:00
|
|
|
|
|
|
|
|
|
|
/** 操作地址 */
|
2022-12-08 16:53:47 +08:00
|
|
|
|
[DisplayName("操作地址")]
|
2022-09-01 21:54:53 +08:00
|
|
|
|
public string OperIp { get; set; }
|
2021-08-23 16:57:25 +08:00
|
|
|
|
|
|
|
|
|
|
/** 操作地点 */
|
2022-12-08 16:53:47 +08:00
|
|
|
|
[DisplayName("操作地点")]
|
2022-09-01 21:54:53 +08:00
|
|
|
|
public string OperLocation { get; set; }
|
2021-08-23 16:57:25 +08:00
|
|
|
|
|
|
|
|
|
|
/** 请求参数 */
|
2022-12-08 16:53:47 +08:00
|
|
|
|
[DisplayName("请求参数")]
|
2022-09-01 21:54:53 +08:00
|
|
|
|
public string OperParam { get; set; }
|
2021-08-23 16:57:25 +08:00
|
|
|
|
|
|
|
|
|
|
/** 返回参数 */
|
2022-12-08 16:53:47 +08:00
|
|
|
|
[DisplayName("返回结果")]
|
2022-09-01 21:54:53 +08:00
|
|
|
|
public string JsonResult { get; set; }
|
2021-08-23 16:57:25 +08:00
|
|
|
|
|
|
|
|
|
|
/** 操作状态(0正常 1异常) */
|
2022-12-08 16:53:47 +08:00
|
|
|
|
[DisplayName("状态")]
|
2022-09-01 21:54:53 +08:00
|
|
|
|
public int Status { get; set; }
|
2021-08-23 16:57:25 +08:00
|
|
|
|
|
2022-03-02 21:18:20 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 错误消息
|
|
|
|
|
|
/// </summary>
|
2022-12-08 16:53:47 +08:00
|
|
|
|
[DisplayName("错误消息")]
|
2022-09-01 21:54:53 +08:00
|
|
|
|
public string ErrorMsg { get; set; }
|
2021-08-23 16:57:25 +08:00
|
|
|
|
|
2022-03-02 21:18:20 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 操作时间
|
|
|
|
|
|
/// </summary>
|
2022-12-08 16:53:47 +08:00
|
|
|
|
[DisplayName("操作时间")]
|
2022-09-01 21:54:53 +08:00
|
|
|
|
public DateTime? OperTime { get; set; }
|
2021-08-23 16:57:25 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 操作用时
|
|
|
|
|
|
/// </summary>
|
2022-12-08 16:53:47 +08:00
|
|
|
|
[DisplayName("操作用时")]
|
2021-08-23 16:57:25 +08:00
|
|
|
|
public long Elapsed { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|