com.quhaodian.user.data.entity.UserLoginLog Maven / Gradle / Ivy
package com.quhaodian.user.data.entity;
import com.quhaodian.data.entity.AbstractEntity;
import com.quhaodian.user.data.enums.LoginState;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
/**
* 用户登录记录
*
* @author ada
*
*/
@Entity
@Table(name = "user_login_log")
public class UserLoginLog extends AbstractEntity {
private String ip;
@ManyToOne(fetch = FetchType.LAZY)
private UserInfo user;
/**
* 登录状态,0为失败1为成功
*/
private LoginState state;
/**
* 登陆账号
*/
private String account;
/**
* 登陆客户端
*/
private String client;
public String getIp() {
return ip;
}
public void setIp(String ip) {
this.ip = ip;
}
public UserInfo getUser() {
return user;
}
public void setUser(UserInfo user) {
this.user = user;
}
public LoginState getState() {
return state;
}
public void setState(LoginState state) {
this.state = state;
}
public String getAccount() {
return account;
}
public void setAccount(String account) {
this.account = account;
}
public String getClient() {
return client;
}
public void setClient(String client) {
this.client = client;
}
}