Commit 367c0cae by luozhenzhen

追加设备信息的接受时间

parent 6ce15b88
...@@ -2,12 +2,15 @@ package com.demo.entity.po; ...@@ -2,12 +2,15 @@ package com.demo.entity.po;
import org.springframework.data.mongodb.core.mapping.Document; import org.springframework.data.mongodb.core.mapping.Document;
import java.util.Date;
@Document(collection = "DeviceInfo") @Document(collection = "DeviceInfo")
public class DeviceInfo { public class DeviceInfo {
private String os; private String os;
private String info; private String info;
private String reyunId; private String reyunId;
private Long timestamps;
public DeviceInfo() { public DeviceInfo() {
} }
...@@ -16,6 +19,7 @@ public class DeviceInfo { ...@@ -16,6 +19,7 @@ public class DeviceInfo {
this.os = os; this.os = os;
this.info = info; this.info = info;
this.reyunId = reyunId; this.reyunId = reyunId;
timestamps = new Date().getTime();
} }
public String getOs() { public String getOs() {
...@@ -41,4 +45,12 @@ public class DeviceInfo { ...@@ -41,4 +45,12 @@ public class DeviceInfo {
public void setReyunId(String reyunId) { public void setReyunId(String reyunId) {
this.reyunId = reyunId; this.reyunId = reyunId;
} }
public Long getTimestamps() {
return timestamps;
}
public void setTimestamps(Long timestamps) {
this.timestamps = timestamps;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment