mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-25 20:35:35 +08:00
学员安全登出
This commit is contained in:
26
src/main/java/xyz/playedu/api/event/UserLogoutEvent.java
Normal file
26
src/main/java/xyz/playedu/api/event/UserLogoutEvent.java
Normal 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user