|
@@ -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;
|
|
|
+ @Column(length = 50)
|
|
|
private String deviceId;
|
|
|
+ @Column(length = 50)
|
|
|
private String netType;
|
|
|
+ @Column(length = 50)
|
|
|
private String brand;
|
|
|
+ @Column(length = 50)
|
|
|
private String model;
|
|
|
- private String sysVer;
|
|
|
- private String appVer;
|
|
|
+ @Column(length = 50)
|
|
|
+ private String sysVersion;
|
|
|
+ @Column(length = 50)
|
|
|
+ private String appVersion;
|
|
|
+ @Column(length = 50)
|
|
|
private String appCode;
|
|
|
+ @Column(length = 50)
|
|
|
private String patchCode;
|
|
|
+ @Column(length = 50)
|
|
|
private String account;
|
|
|
- private String key;
|
|
|
- private String token;
|
|
|
+ @Column(length = 50)
|
|
|
+ private String loginKey;
|
|
|
+ @Column(length = 50)
|
|
|
+ private String loginToken;
|
|
|
+ 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;
|
|
|
}
|
|
|
|
|
|
}
|