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
6dd23634dc5266135593f005587c743e03feb19f
1 parent
88a3abba
线下店nginx切换
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
monitor-ui-ctrl/src/main/java/com/ui/ctrl/StoreSwitchCtrl.java
monitor-ui-ctrl/src/main/java/com/ui/ctrl/StoreSwitchCtrl.java
View file @
6dd2363
...
...
@@ -17,13 +17,13 @@ import java.util.Map;
* @author craig.qin 2018-1-10
*/
@Controller
@RequestMapping
(
"storeSwitch"
)
@RequestMapping
(
"
/
storeSwitch"
)
public
class
StoreSwitchCtrl
{
@Autowired
HttpRestClient
httpRestClient
;
@RequestMapping
(
value
=
"toStoreSwitch"
)
@RequestMapping
(
value
=
"
/
toStoreSwitch"
)
public
ModelAndView
toStoreSwitch
()
{
ModelAndView
mdv
=
new
ModelAndView
(
"storeSwitch/storeswitch"
);
return
mdv
;
...
...
@@ -33,7 +33,7 @@ public class StoreSwitchCtrl {
* 展示配置文件信息
*
*/
@RequestMapping
(
value
=
"viewStoreNginxCurrentConf"
)
@RequestMapping
(
value
=
"
/
viewStoreNginxCurrentConf"
)
@ResponseBody
public
BaseResponse
viewStoreNginxCurrentConf
()
{
return
httpRestClient
.
defaultGet
(
"/storeSwitch/viewStoreNginxCurrentConf"
,
BaseResponse
.
class
,
null
);
...
...
@@ -43,7 +43,7 @@ public class StoreSwitchCtrl {
* 解析当前配置,绘图用
*
*/
@RequestMapping
(
value
=
"getStoreNginxStatus"
)
@RequestMapping
(
value
=
"
/
getStoreNginxStatus"
)
@ResponseBody
public
BaseResponse
getStoreNginxStatus
()
{
return
httpRestClient
.
defaultGet
(
"/storeSwitch/getStoreNginxStatus"
,
BaseResponse
.
class
,
null
);
...
...
@@ -54,7 +54,7 @@ public class StoreSwitchCtrl {
* 切换结果预览
*
*/
@RequestMapping
(
value
=
"viewStoreNginxToChangeConf"
)
@RequestMapping
(
value
=
"
/
viewStoreNginxToChangeConf"
)
@ResponseBody
public
BaseResponse
viewStoreNginxToChangeConf
(
String
serviceType
,
String
onlineOrGray
)
{
Map
<
String
,
String
>
map
=
new
HashMap
<>();
...
...
@@ -67,7 +67,7 @@ public class StoreSwitchCtrl {
* 确定切换
*
*/
@RequestMapping
(
value
=
"switchStoreNginx"
)
@RequestMapping
(
value
=
"
/
switchStoreNginx"
)
@ResponseBody
public
BaseResponse
switchStoreNginx
(
String
confContent
)
{
return
httpRestClient
.
defaultPost
(
"/storeSwitch/switchStoreNginx"
,
confContent
,
BaseResponse
.
class
);
...
...
Please
register
or
login
to post a comment