From cea7d1c682ea46f8b39efa9e9eb581374a316d1f Mon Sep 17 00:00:00 2001
From: wuxw7 <wuxw7@asiainfo.com>
Date: 星期五, 22 三月 2019 08:51:57 +0800
Subject: [PATCH] 尝试合并每个组件代码

---
 WebService/src/main/java/com/java110/web/components/NavComponent.java |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/WebService/src/main/java/com/java110/web/components/NavComponent.java b/WebService/src/main/java/com/java110/web/components/NavComponent.java
index c6dbd4f..44a86d1 100644
--- a/WebService/src/main/java/com/java110/web/components/NavComponent.java
+++ b/WebService/src/main/java/com/java110/web/components/NavComponent.java
@@ -1,5 +1,10 @@
 package com.java110.web.components;
 
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import com.java110.core.context.IPageData;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
 import org.springframework.stereotype.Component;
 
 /**
@@ -9,4 +14,19 @@
 
 @Component("nav")
 public class NavComponent {
+
+
+    public ResponseEntity<String> getNavData(IPageData pd){
+
+        String result = "{'welcomeText':'娆㈣繋璁块棶HC灏忓尯绠$悊绯荤粺锛屽鏂囷紒','noticeSize':10," +
+                "'moreNoticeUrl':'/moreNotice','notices':[" +
+                "{'msg':'鏂扮郴缁熷紑鍙戞祴璇�','date':'2019-03-19'}," +
+                "{'msg':'鏉冮檺妫�鏌ユ祴璇�','date':'2019-03-21'}," +
+                "{'msg':'绯荤粺娆插紑鍙戞祴璇�','date':'2019-03-20'}" +
+                "]}";
+
+        JSONObject nav = JSONObject.parseObject(result);
+
+        return new ResponseEntity<String>(nav.toJSONString(), HttpStatus.OK);
+    }
 }

--
Gitblit v1.8.0