HistoryLogin.java 6.4 KB
Newer Older
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/*
 * Copyright [2020] [MaxKey of copyright http://www.maxkey.top]
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
 

M
MaxKey 已提交
18
package org.maxkey.entity;
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
19 20 21

import java.io.Serializable;

MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
22
import javax.persistence.Column;
23
import javax.persistence.Entity;
MaxKey单点登录官方's avatar
am  
MaxKey单点登录官方 已提交
24 25 26
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
27 28
import javax.persistence.Table;

M
MaxKey 已提交
29
import org.apache.mybatis.jpa.persistence.JpaBaseEntity;
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
30 31 32 33 34 35


/**
 * @author Crystal.Sea
 *
 */
36
@Entity
MaxKey单点登录官方's avatar
MXK  
MaxKey单点登录官方 已提交
37
@Table(name = "MXK_HISTORY_LOGIN")  
M
MaxKey 已提交
38
public class HistoryLogin  extends JpaBaseEntity  implements Serializable{
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
39 40 41 42 43
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -1321470643357719383L;
MaxKey单点登录官方's avatar
am  
MaxKey单点登录官方 已提交
44 45
	@Id
	@Column
M
MaxKey 已提交
46
	@GeneratedValue(strategy=GenerationType.AUTO,generator="snowflakeid")
MaxKey单点登录官方's avatar
am  
MaxKey单点登录官方 已提交
47
	String id;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
48
	@Column
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
49
	String sessionId;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
50
	@Column
M
MaxKey 已提交
51
	String userId;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
52
	@Column
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
53
	String username;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
54
	@Column
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
55
	String displayName;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
56
	@Column
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
57
	String loginType;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
58
	@Column
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
59
	String message;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
60
	@Column
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
61
	String code;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
62
	@Column
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
63
	String provider;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
64
	@Column
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
65
	String sourceIp;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
66
	@Column
M
MaxKey 已提交
67 68 69 70
	String ipRegion;
	@Column
	String ipLocation;
	@Column
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
71
	String browser;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
72
	@Column
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
73
	String platform;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
74
	@Column
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
75
	String application;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
76
	@Column
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
77
	String loginUrl;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
78
	@Column
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
79
	String loginTime;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
80
	@Column
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
81
	String logoutTime;
M
MaxKey 已提交
82 83 84 85
	@Column
	private String instId;

	private String instName;
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
86
	
M
MaxKey 已提交
87 88
	int sessionStatus;
	
MaxKey单点登录官方's avatar
am  
MaxKey单点登录官方 已提交
89 90
	String startDate;
	String endDate;
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
91
	
MaxKey单点登录官方's avatar
m-11/6  
MaxKey单点登录官方 已提交
92
	public HistoryLogin() {
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
93 94 95
		super();
	}

MaxKey单点登录官方's avatar
am  
MaxKey单点登录官方 已提交
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getSessionId() {
		return sessionId;
	}

	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
111

M
MaxKey 已提交
112 113
	public String getUserId() {
		return userId;
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
114 115
	}

M
MaxKey 已提交
116 117
	public void setUserId(String userId) {
		this.userId = userId;
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getDisplayName() {
		return displayName;
	}

	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}

	public String getLoginType() {
		return loginType;
	}

	public void setLoginType(String loginType) {
		this.loginType = loginType;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getProvider() {
		return provider;
	}

	public void setProvider(String provider) {
		this.provider = provider;
	}

MaxKey单点登录官方's avatar
am  
MaxKey单点登录官方 已提交
168 169
	public String getSourceIp() {
		return sourceIp;
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
170 171
	}

MaxKey单点登录官方's avatar
am  
MaxKey单点登录官方 已提交
172 173
	public void setSourceIp(String sourceIp) {
		this.sourceIp = sourceIp;
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
174 175
	}

M
MaxKey 已提交
176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191
	public String getIpRegion() {
		return ipRegion;
	}

	public void setIpRegion(String ipRegion) {
		this.ipRegion = ipRegion;
	}

	public String getIpLocation() {
		return ipLocation;
	}

	public void setIpLocation(String ipLocation) {
		this.ipLocation = ipLocation;
	}

MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223
	public String getBrowser() {
		return browser;
	}

	public void setBrowser(String browser) {
		this.browser = browser;
	}

	public String getPlatform() {
		return platform;
	}

	public void setPlatform(String platform) {
		this.platform = platform;
	}

	public String getApplication() {
		return application;
	}

	public void setApplication(String application) {
		this.application = application;
	}

	public String getLoginUrl() {
		return loginUrl;
	}

	public void setLoginUrl(String loginUrl) {
		this.loginUrl = loginUrl;
	}

MaxKey单点登录官方's avatar
am  
MaxKey单点登录官方 已提交
224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254
	public String getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(String loginTime) {
		this.loginTime = loginTime;
	}

	public String getLogoutTime() {
		return logoutTime;
	}

	public void setLogoutTime(String logoutTime) {
		this.logoutTime = logoutTime;
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
255

M
MaxKey 已提交
256 257 258 259 260 261 262 263
	public int getSessionStatus() {
        return sessionStatus;
    }

    public void setSessionStatus(int sessionStatus) {
        this.sessionStatus = sessionStatus;
    }

M
MaxKey 已提交
264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280
    public String getInstId() {
		return instId;
	}

	public void setInstId(String instId) {
		this.instId = instId;
	}

	public String getInstName() {
		return instName;
	}

	public void setInstName(String instName) {
		this.instName = instName;
	}

	@Override
M
MaxKey 已提交
281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("HistoryLogin [id=");
		builder.append(id);
		builder.append(", sessionId=");
		builder.append(sessionId);
		builder.append(", userId=");
		builder.append(userId);
		builder.append(", username=");
		builder.append(username);
		builder.append(", displayName=");
		builder.append(displayName);
		builder.append(", loginType=");
		builder.append(loginType);
		builder.append(", message=");
		builder.append(message);
		builder.append(", code=");
		builder.append(code);
		builder.append(", provider=");
		builder.append(provider);
		builder.append(", sourceIp=");
		builder.append(sourceIp);
		builder.append(", ipRegion=");
		builder.append(ipRegion);
		builder.append(", ipLocation=");
		builder.append(ipLocation);
		builder.append(", browser=");
		builder.append(browser);
		builder.append(", platform=");
		builder.append(platform);
		builder.append(", application=");
		builder.append(application);
		builder.append(", loginUrl=");
		builder.append(loginUrl);
		builder.append(", loginTime=");
		builder.append(loginTime);
		builder.append(", logoutTime=");
		builder.append(logoutTime);
		builder.append(", instId=");
		builder.append(instId);
		builder.append(", instName=");
		builder.append(instName);
		builder.append(", sessionStatus=");
		builder.append(sessionStatus);
		builder.append(", startDate=");
		builder.append(startDate);
		builder.append(", endDate=");
		builder.append(endDate);
		builder.append("]");
		return builder.toString();
	}
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
332
}