HistoryLogin.java 5.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
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
51
	String uid;
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
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
67
	String browser;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
68
	@Column
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
69
	String platform;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
70
	@Column
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
71
	String application;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
72
	@Column
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
73
	String loginUrl;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
74
	@Column
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
75
	String loginTime;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
76
	@Column
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
77 78
	String logoutTime;
	
MaxKey单点登录官方's avatar
am  
MaxKey单点登录官方 已提交
79 80
	String startDate;
	String endDate;
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
81
	
MaxKey单点登录官方's avatar
m-11/6  
MaxKey单点登录官方 已提交
82
	public HistoryLogin() {
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
83 84 85
		super();
	}

MaxKey单点登录官方's avatar
am  
MaxKey单点登录官方 已提交
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
	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单点登录官方 已提交
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 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

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	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单点登录官方 已提交
158 159
	public String getSourceIp() {
		return sourceIp;
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
160 161
	}

MaxKey单点登录官方's avatar
am  
MaxKey单点登录官方 已提交
162 163
	public void setSourceIp(String sourceIp) {
		this.sourceIp = sourceIp;
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197
	}

	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单点登录官方 已提交
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 224 225 226 227 228
	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单点登录官方 已提交
229 230

	@Override
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("HistoryLogin [id=");
        builder.append(id);
        builder.append(", sessionId=");
        builder.append(sessionId);
        builder.append(", uid=");
        builder.append(uid);
        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(", 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(", startDate=");
        builder.append(startDate);
        builder.append(", endDate=");
        builder.append(endDate);
        builder.append("]");
        return builder.toString();
    }
MaxKey单点登录官方's avatar
init  
MaxKey单点登录官方 已提交
272 273 274


}