Просмотр исходного кода

Change-Id: Idf2791173782e349f5b20c4dcc95acfa397b825a

albertshaw лет назад: 8
Родитель
Сommit
02ebffb1c7

+ 5 - 1
src/main/java/com/goafanti/common/model/ActivityUserKey.java

@@ -1,5 +1,8 @@
 package com.goafanti.common.model;
 
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.fasterxml.jackson.annotation.JsonFormat.Shape;
+
 public class ActivityUserKey {
     /**
     * 活动id
@@ -19,7 +22,8 @@ public class ActivityUserKey {
     	this.aid = aid;
     	this.uid = uid;
     }
-
+    
+    @JsonFormat(shape = Shape.STRING)
     public Long getAid() {
         return aid;
     }

+ 0 - 2
src/main/java/com/goafanti/news/service/NewsService.java

@@ -5,8 +5,6 @@ import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 
-import javax.servlet.http.HttpServletRequest;
-
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;