package com.jy.framework.model.event;

import com.jy.framework.satoken.AccessInfo;
import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;

@Getter
@Setter
public class AccessEvent extends ApplicationEvent {

    /**
     * 访问信息
     */
    private AccessInfo accessInfo;

    /**
     * 用户名
     */
    private String username;

    /**
     * 是否成功
     */
    private boolean success;

    /**
     * 访问结构
     */
    private String message;

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

}
