added: 学员登录api

This commit is contained in:
none
2023-03-10 14:10:55 +08:00
parent 06efa97e9f
commit f9dec16760
15 changed files with 446 additions and 101 deletions

View 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;
}
}