package com.jy.framework.model.event;

import com.jy.framework.model.enums.BusinessType;
import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;

/**
 * 操作日志事件
 *
 * @author zlj
 */
@Getter
@Setter
public class OperateEvent extends ApplicationEvent {

    /**
     * 标题
     */
    private String title;

    /**
     * 功能
     */
    private BusinessType businessType;

    /**
     * 排除指定的请求参数
     */
    private String[] excludeFields;

    /**
     * 执行时间
     */
    private Long costTime;

    /**
     * 执行结果
     */
    private Object result;

    /**
     * 异常信息
     */
    private Exception exception;

    public OperateEvent() {
        super(OperateEvent.class);
    }

}
