Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ops
/
monitor-ui
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
qinchao
7 years ago
Commit
172c9c13da1947c9e886865405226c58f8f821c5
1 parent
b920b12f
增加test方法
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
monitor-ui-ctrl/src/main/java/com/ui/ctrl/OuterIntfCtrl.java
monitor-ui-ctrl/src/main/java/com/ui/ctrl/OuterIntfCtrl.java
View file @
172c9c1
package
com
.
ui
.
ctrl
;
import
com.ui.contants.HttpUriContants
;
import
com.ui.http.HttpRestClient
;
import
com.ui.model.BaseResponse
;
import
com.ui.model.MonitAlarmInfo
;
import
com.ui.model.req.ZkDetailReq
;
import
com.ui.model.req.ZkTreeReq
;
import
org.apache.commons.lang.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -14,7 +11,6 @@ import org.springframework.stereotype.Controller;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.servlet.ModelAndView
;
import
java.util.HashMap
;
import
java.util.Map
;
...
...
@@ -104,4 +100,18 @@ public class OuterIntfCtrl {
return
httpClient
.
defaultGet
(
"/internalDns/justForShell"
,
String
.
class
,
map
);
}
/**
* 捕获的恶意ip写入运维系统的mysql
* 大数据算法
* @return
*/
@RequestMapping
(
"/testsearch"
)
@ResponseBody
public
BaseResponse
testsearch
()
{
Map
<
String
,
String
>
map
=
new
HashMap
<>();
BaseResponse
response
=
httpClient
.
get
(
"http://search.yohoops.org/yohosearch/fuzzy/productList.json?query=卫衣&viewNum=30&uid=13420925"
,
BaseResponse
.
class
,
map
);
return
response
;
}
}
...
...
Please
register
or
login
to post a comment