From f5986a355fda8d5df98fe01127bcd7f490f7cdf5 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期五, 19 四月 2019 17:24:55 +0800
Subject: [PATCH] 开始开发房屋管理
---
WebService/src/main/java/com/java110/web/components/NavComponent.java | 48 +++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 47 insertions(+), 1 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 44a86d1..ff4f7cf 100644
--- a/WebService/src/main/java/com/java110/web/components/NavComponent.java
+++ b/WebService/src/main/java/com/java110/web/components/NavComponent.java
@@ -3,6 +3,8 @@
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.java110.core.context.IPageData;
+import com.java110.web.smo.INavServiceSMO;
+import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
@@ -15,10 +17,12 @@
@Component("nav")
public class NavComponent {
+ @Autowired
+ private INavServiceSMO navServiceSMOImpl;
public ResponseEntity<String> getNavData(IPageData pd){
- String result = "{'welcomeText':'娆㈣繋璁块棶HC灏忓尯绠$悊绯荤粺锛屽鏂囷紒','noticeSize':10," +
+ String result = "{'noticeSize':10," +
"'moreNoticeUrl':'/moreNotice','notices':[" +
"{'msg':'鏂扮郴缁熷紑鍙戞祴璇�','date':'2019-03-19'}," +
"{'msg':'鏉冮檺妫�鏌ユ祴璇�','date':'2019-03-21'}," +
@@ -29,4 +33,46 @@
return new ResponseEntity<String>(nav.toJSONString(), HttpStatus.OK);
}
+
+
+ /**
+ * 閫�鍑虹櫥褰�
+ * @param pd
+ * @return
+ */
+ public ResponseEntity<String> logout(IPageData pd){
+ ResponseEntity<String> responseEntity = null;
+ try{
+ responseEntity = navServiceSMOImpl.doExit(pd);
+ }catch (Exception e){
+ responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR);
+ }finally {
+ return responseEntity;
+ }
+ }
+
+ /**
+ * 鑾峰彇鐢ㄦ埛淇℃伅
+ * @param pd
+ * @return
+ */
+ public ResponseEntity<String> getUserInfo(IPageData pd){
+ ResponseEntity<String> responseEntity = null;
+ try{
+ responseEntity = navServiceSMOImpl.getUserInfo(pd);
+ }catch (Exception e){
+ responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR);
+ }finally {
+ return responseEntity;
+ }
+ }
+
+
+ public INavServiceSMO getNavServiceSMOImpl() {
+ return navServiceSMOImpl;
+ }
+
+ public void setNavServiceSMOImpl(INavServiceSMO navServiceSMOImpl) {
+ this.navServiceSMOImpl = navServiceSMOImpl;
+ }
}
--
Gitblit v1.8.0