|
|
@@ -4,6 +4,8 @@ import java.util.Date;
|
|
|
|
|
|
import org.apache.commons.lang3.time.DateFormatUtils;
|
|
|
|
|
|
+import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
+import com.fasterxml.jackson.annotation.JsonFormat.Shape;
|
|
|
import com.goafanti.common.constant.AFTConstants;
|
|
|
|
|
|
public class NewsSummary {
|
|
|
@@ -41,7 +43,8 @@ public class NewsSummary {
|
|
|
* 简介
|
|
|
*/
|
|
|
private String summary;
|
|
|
-
|
|
|
+
|
|
|
+ @JsonFormat(shape = Shape.STRING)
|
|
|
public Long getId() {
|
|
|
return id;
|
|
|
}
|