mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-25 20:35:35 +08:00
added: 学员登录api
This commit is contained in:
37
src/main/java/xyz/playedu/api/event/UserLoginEvent.java
Normal file
37
src/main/java/xyz/playedu/api/event/UserLoginEvent.java
Normal file
@@ -0,0 +1,37 @@
|
||||
package xyz.playedu.api.event;
|
||||
|
||||
import cn.hutool.http.useragent.UserAgent;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.springframework.context.ApplicationEvent;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Author 杭州白书科技有限公司
|
||||
* @create 2023/3/10 13:22
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
public class UserLoginEvent extends ApplicationEvent {
|
||||
|
||||
private Integer userId;
|
||||
|
||||
private Date loginAt;
|
||||
|
||||
private String token;
|
||||
|
||||
private String ip;
|
||||
|
||||
private UserAgent userAgent;
|
||||
|
||||
public UserLoginEvent(Object source, Integer userId, Date loginAt, String token, String ip, UserAgent userAgent) {
|
||||
super(source);
|
||||
this.userId = userId;
|
||||
this.loginAt = loginAt;
|
||||
this.token = token;
|
||||
this.ip = ip;
|
||||
this.userAgent = userAgent;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user