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
54a0576baf2bee647b92b844cb66455395bb5355
1 parent
162e0c85
缓存时间配置
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
monitor-ui-ctrl/src/main/java/com/ui/ctrl/CacheInfoCtrl.java
monitor-ui-ctrl/src/main/java/com/ui/ctrl/CacheInfoCtrl.java
View file @
54a0576
package
com
.
ui
.
ctrl
;
import
java.util.List
;
import
com.ui.contants.HttpUriContants
;
import
com.ui.http.HttpRestClient
;
import
com.ui.model.BaseResponse
;
import
com.ui.model.req.CacheInfoReq
;
import
com.ui.model.req.ZkDetailReq
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
...
...
@@ -10,10 +12,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.servlet.ModelAndView
;
import
com.ui.contants.HttpUriContants
;
import
com.ui.http.HttpRestClient
;
import
com.ui.model.BaseResponse
;
import
com.ui.model.req.CacheInfoReq
;
import
java.util.List
;
@Controller
@RequestMapping
(
"cacheInfo"
)
...
...
@@ -45,7 +44,7 @@ public class CacheInfoCtrl {
@ResponseBody
@RequestMapping
(
"/getZkMonitorValue"
)
public
BaseResponse
getZkMonitorValue
(
ZkDetailReq
req
)
{
BaseResponse
response
=
httpClient
.
defaultPost
(
HttpUriContants
.
GET_
RISKCTROL_ZK_DETAIL
,
req
,
BaseResponse
.
class
);
BaseResponse
response
=
httpClient
.
defaultPost
(
HttpUriContants
.
GET_
ZK_VALUE
,
req
,
BaseResponse
.
class
);
return
response
;
}
...
...
Please
register
or
login
to post a comment