修改Tracker服务器相关bug
Change-Id: Id3ec61034575bd794724be98f832f8c065448b92
diff --git a/src/main/java/com/pt/entity/Resource.java b/src/main/java/com/pt/entity/Resource.java
index 0ac7321..073dbbb 100644
--- a/src/main/java/com/pt/entity/Resource.java
+++ b/src/main/java/com/pt/entity/Resource.java
@@ -15,7 +15,6 @@
private int resourceId;
private String name;
- private double size;
private LocalDateTime publishTime;
private String author;
@@ -23,14 +22,12 @@
private String description;
private byte[] torrentData;
- private String info_hash;
public Resource() {
}
- public Resource(int resourceId, String name, double size, LocalDateTime publishTime, String author) {
+ public Resource(int resourceId, String name, LocalDateTime publishTime, String author) {
this.resourceId = resourceId;
this.name = name;
- this.size = size;
this.publishTime = publishTime;
this.author = author;
}
@@ -47,12 +44,6 @@
public void setName(String name) {
this.name = name;
}
- public double getSize() {
- return size;
- }
- public void setSize(double size) {
- this.size = size;
- }
public LocalDateTime getPublishTime() {
return publishTime;
}
@@ -79,14 +70,6 @@
this.torrentData = torrentData;
}
- public String getInfo_hash() {
- return info_hash;
- }
-
- public void setInfo_hash(String info_hash) {
- this.info_hash = info_hash;
- }
-
/*
* 重写toString方法,将资源信息以JSON字符串形式返回
*/
@@ -95,7 +78,6 @@
return "{" +
"\"resourceId\":" + resourceId +
", \"name\":\"" + name + "\"" +
- ", \"size\":" + size +
", \"publishTime\":\"" + publishTime + "\"" +
", \"author\":\"" + author + "\"" +
", \"description\":\"" + description + "\"" +