Showing
1 changed file
with
14 additions
and
4 deletions
1 | package com.ui.ctrl; | 1 | package com.ui.ctrl; |
2 | 2 | ||
3 | -import com.ui.contants.HttpUriContants; | ||
4 | import com.ui.http.HttpRestClient; | 3 | import com.ui.http.HttpRestClient; |
5 | import com.ui.model.BaseResponse; | 4 | import com.ui.model.BaseResponse; |
6 | import com.ui.model.MonitAlarmInfo; | 5 | import com.ui.model.MonitAlarmInfo; |
7 | -import com.ui.model.req.ZkDetailReq; | ||
8 | -import com.ui.model.req.ZkTreeReq; | ||
9 | import org.apache.commons.lang.StringUtils; | 6 | import org.apache.commons.lang.StringUtils; |
10 | import org.slf4j.Logger; | 7 | import org.slf4j.Logger; |
11 | import org.slf4j.LoggerFactory; | 8 | import org.slf4j.LoggerFactory; |
@@ -14,7 +11,6 @@ import org.springframework.stereotype.Controller; | @@ -14,7 +11,6 @@ import org.springframework.stereotype.Controller; | ||
14 | import org.springframework.web.bind.annotation.RequestBody; | 11 | import org.springframework.web.bind.annotation.RequestBody; |
15 | import org.springframework.web.bind.annotation.RequestMapping; | 12 | import org.springframework.web.bind.annotation.RequestMapping; |
16 | import org.springframework.web.bind.annotation.ResponseBody; | 13 | import org.springframework.web.bind.annotation.ResponseBody; |
17 | -import org.springframework.web.servlet.ModelAndView; | ||
18 | 14 | ||
19 | import java.util.HashMap; | 15 | import java.util.HashMap; |
20 | import java.util.Map; | 16 | import java.util.Map; |
@@ -104,4 +100,18 @@ public class OuterIntfCtrl { | @@ -104,4 +100,18 @@ public class OuterIntfCtrl { | ||
104 | return httpClient.defaultGet("/internalDns/justForShell",String.class,map); | 100 | return httpClient.defaultGet("/internalDns/justForShell",String.class,map); |
105 | } | 101 | } |
106 | 102 | ||
103 | + | ||
104 | + /** | ||
105 | + * 捕获的恶意ip写入运维系统的mysql | ||
106 | + * 大数据算法 | ||
107 | + * @return | ||
108 | + */ | ||
109 | + @RequestMapping("/testsearch") | ||
110 | + @ResponseBody | ||
111 | + public BaseResponse testsearch() { | ||
112 | + Map<String,String> map=new HashMap<>(); | ||
113 | + BaseResponse response=httpClient.get("http://search.yohoops.org/yohosearch/fuzzy/productList.json?query=卫衣&viewNum=30&uid=13420925",BaseResponse.class,map); | ||
114 | + return response; | ||
115 | + } | ||
116 | + | ||
107 | } | 117 | } |
-
Please register or login to post a comment