学员安全登出

This commit is contained in:
none
2023-03-21 14:57:00 +08:00
parent ee248b483d
commit ad02bcad59
11 changed files with 114 additions and 49 deletions

View File

@@ -0,0 +1,26 @@
package xyz.playedu.api.event;
import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;
import java.util.Date;
/**
* @Author 杭州白书科技有限公司
* @create 2023/3/21 14:31
*/
@Setter
@Getter
public class UserLogoutEvent extends ApplicationEvent {
private Integer userId;
private String jti;
private Date createdAt;
public UserLogoutEvent(Object source, Integer userId, String jti) {
super(source);
this.userId = userId;
this.jti = jti;
this.createdAt = new Date();
}
}