package com.securitycontrol.system.api.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author：cwchen
 * @date：2024-02-28-14:14
 * @version：1.0
 * @description：系统日志
 */
@Data
public class SysLog {

    @ApiModelProperty(value = "日志ID")
    private String logId;

    @ApiModelProperty(value = "操作ip")
    private String ip;

    @ApiModelProperty(value = "操作人ID")
    private Long userId;

    @ApiModelProperty(value = "操作人姓名")
    private String operaUserName;

    @ApiModelProperty(value = "操作模块")
    private String model;

    @ApiModelProperty(value = "操作时间")
    private String operTime;

    @ApiModelProperty(value = "执行方法")
    private String method;

    @ApiModelProperty(value = "操作参数")
    private String params;

    @ApiModelProperty(value = "操作详情")
    private String operateDetail;

    @ApiModelProperty(value = "操作类型  增删改查 登陆 登出")
    private String operType;

    @ApiModelProperty(value = "操作页面路径URI")
    private String operUri;

    @ApiModelProperty(value = "日志类型 1 业务日志 0 系统日志  2异常日志")
    private Integer logType;

    @ApiModelProperty(value = "执行结果(1.成功/2.失败)")
    private Integer result;

    @ApiModelProperty(value = "执行时间(秒/ms)")
    private String times;

    @ApiModelProperty(value = "失败原因")
    private String failureReason;

    @ApiModelProperty(value = "异常事件等级(高、中、低")
    private String grade;

    @ApiModelProperty(value = "异常类型(ip异常/越权)")
    private String errType;
}
