|
@@ -7,26 +7,43 @@
|
|
|
|
|
|
package cn.com.qmth.examcloud.app.model;
|
|
|
|
|
|
-import java.io.Serializable;
|
|
|
+import javax.persistence.Column;
|
|
|
+import javax.persistence.Entity;
|
|
|
+import javax.persistence.Table;
|
|
|
+import java.util.Date;
|
|
|
|
|
|
/**
|
|
|
* 设备访问记录
|
|
|
* 注:用于记录APP端调用接口时header中附带来源信息
|
|
|
*/
|
|
|
-public class DeviceRecord implements Serializable {
|
|
|
- private static final long serialVersionUID = 1L;
|
|
|
+@Entity
|
|
|
+@Table(name = "app_device_record")
|
|
|
+public class DeviceRecord extends IdEntity {
|
|
|
+ @Column(length = 50)
|
|
|
private String system;//系统标识,如:ios,android
|
|
|
+ @Column(length = 50)
|
|
|
private String deviceId;//设备编号
|
|
|
+ @Column(length = 50)
|
|
|
private String netType;//网络类型,如:WIFI,GPRS,2G,3G,4G,5G
|
|
|
+ @Column(length = 50)
|
|
|
private String brand;//设备品牌,如:iPhone,小米,华为
|
|
|
+ @Column(length = 50)
|
|
|
private String model;//型号,如:iPhone6 plus
|
|
|
- private String sysVer;//系统版本号,如:android6.0,ios11.0.2
|
|
|
- private String appVer;//app版本号,如:1.0.1,2.0.0
|
|
|
+ @Column(length = 50)
|
|
|
+ private String sysVersion;//系统版本号,如:android6.0,ios11.0.2
|
|
|
+ @Column(length = 50)
|
|
|
+ private String appVersion;//app版本号,如:1.0.1,2.0.0
|
|
|
+ @Column(length = 50)
|
|
|
private String appCode;//app更新号[整数]
|
|
|
+ @Column(length = 50)
|
|
|
private String patchCode;//app补丁号
|
|
|
+ @Column(length = 50)
|
|
|
private String account;//来源账号(登录名或手机号)
|
|
|
- private String key;//认证KEY
|
|
|
- private String token;//认证TOKEN
|
|
|
+ @Column(length = 50)
|
|
|
+ private String loginKey;//登录认证KEY
|
|
|
+ @Column(length = 50)
|
|
|
+ private String loginToken;//登录认证TOKEN
|
|
|
+ private Date createDate;//创建时间
|
|
|
|
|
|
public String getSystem() {
|
|
|
return system;
|
|
@@ -68,20 +85,20 @@ public class DeviceRecord implements Serializable {
|
|
|
this.model = model;
|
|
|
}
|
|
|
|
|
|
- public String getSysVer() {
|
|
|
- return sysVer;
|
|
|
+ public String getSysVersion() {
|
|
|
+ return sysVersion;
|
|
|
}
|
|
|
|
|
|
- public void setSysVer(String sysVer) {
|
|
|
- this.sysVer = sysVer;
|
|
|
+ public void setSysVersion(String sysVersion) {
|
|
|
+ this.sysVersion = sysVersion;
|
|
|
}
|
|
|
|
|
|
- public String getAppVer() {
|
|
|
- return appVer;
|
|
|
+ public String getAppVersion() {
|
|
|
+ return appVersion;
|
|
|
}
|
|
|
|
|
|
- public void setAppVer(String appVer) {
|
|
|
- this.appVer = appVer;
|
|
|
+ public void setAppVersion(String appVersion) {
|
|
|
+ this.appVersion = appVersion;
|
|
|
}
|
|
|
|
|
|
public String getAppCode() {
|
|
@@ -108,20 +125,28 @@ public class DeviceRecord implements Serializable {
|
|
|
this.account = account;
|
|
|
}
|
|
|
|
|
|
- public String getKey() {
|
|
|
- return key;
|
|
|
+ public String getLoginKey() {
|
|
|
+ return loginKey;
|
|
|
}
|
|
|
|
|
|
- public void setKey(String key) {
|
|
|
- this.key = key;
|
|
|
+ public void setLoginKey(String loginKey) {
|
|
|
+ this.loginKey = loginKey;
|
|
|
}
|
|
|
|
|
|
- public String getToken() {
|
|
|
- return token;
|
|
|
+ public String getLoginToken() {
|
|
|
+ return loginToken;
|
|
|
}
|
|
|
|
|
|
- public void setToken(String token) {
|
|
|
- this.token = token;
|
|
|
+ public void setLoginToken(String loginToken) {
|
|
|
+ this.loginToken = loginToken;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Date getCreateDate() {
|
|
|
+ return createDate;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCreateDate(Date createDate) {
|
|
|
+ this.createDate = createDate;
|
|
|
}
|
|
|
|
|
|
}
|