Logger.java
1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
package com.bsth.entity.logger;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
/**
* 操作日志通用字段
* Created by panzhao on 2017/3/6.
*/
@MappedSuperclass
public abstract class Logger {
@Id
@GeneratedValue
private Long id;
/** 用户信息 */
private String userName;
private String name;
/** ########## 客户端信息 ########### */
/** ip */
private String clientIp;
/** 浏览器 */
private String browser;
/** 系统平台 */
private String clientSystem;
/** 浏览器内核 */
private String browserCore;
/** 操作时间 */
private Long ts;
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getClientIp() {
return clientIp;
}
public void setClientIp(String clientIp) {
this.clientIp = clientIp;
}
public String getBrowser() {
return browser;
}
public void setBrowser(String browser) {
this.browser = browser;
}
public String getClientSystem() {
return clientSystem;
}
public void setClientSystem(String clientSystem) {
this.clientSystem = clientSystem;
}
public String getBrowserCore() {
return browserCore;
}
public void setBrowserCore(String browserCore) {
this.browserCore = browserCore;
}
public Long getTs() {
return ts;
}
public void setTs(Long ts) {
this.ts = ts;
}
}