|
|
@@ -6,6 +6,7 @@ import javax.validation.constraints.Max;
|
|
|
import javax.validation.constraints.Size;
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
+import com.fasterxml.jackson.annotation.JsonFormat.Shape;
|
|
|
|
|
|
public class Banners {
|
|
|
/**
|
|
|
@@ -58,6 +59,7 @@ public class Banners {
|
|
|
*/
|
|
|
private Date endDate;
|
|
|
|
|
|
+ @JsonFormat(shape = Shape.STRING)
|
|
|
public Long getId() {
|
|
|
return id;
|
|
|
}
|
|
|
@@ -114,7 +116,7 @@ public class Banners {
|
|
|
this.height = height;
|
|
|
}
|
|
|
|
|
|
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
|
|
|
public Date getStartDate() {
|
|
|
return startDate;
|
|
|
}
|
|
|
@@ -123,7 +125,7 @@ public class Banners {
|
|
|
this.startDate = startDate;
|
|
|
}
|
|
|
|
|
|
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
|
|
|
public Date getEndDate() {
|
|
|
return endDate;
|
|
|
}
|