Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
discovery
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈文顺
discovery
Commits
2c211bb9
Commit
2c211bb9
authored
Jul 05, 2018
by
Nepxion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改接口
parent
b75bafe4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
discovery-plugin-router-center/src/main/java/com/nepxion/discovery/plugin/routercenter/controller/RouterController.java
+4
-4
No files found.
discovery-plugin-router-center/src/main/java/com/nepxion/discovery/plugin/routercenter/controller/RouterController.java
View file @
2c211bb9
...
...
@@ -77,9 +77,9 @@ public class RouterController {
}
// 获取全路径的路由信息(routeServiceIds按调用服务名的前后次序排列,起始节点的服务名不能加上去。如果多个用“;”分隔,不允许出现空格)
@RequestMapping
(
path
=
"/route
All
"
,
method
=
RequestMethod
.
POST
)
public
RouterEntity
route
All
(
@RequestBody
String
routeServiceIds
)
{
return
executeRouteAll
(
routeServiceIds
);
@RequestMapping
(
path
=
"/route
s
"
,
method
=
RequestMethod
.
POST
)
public
RouterEntity
route
s
(
@RequestBody
String
routeServiceIds
)
{
return
routeTree
(
routeServiceIds
);
}
public
List
<
ServiceInstance
>
getInstanceList
(
String
serviceId
)
{
...
...
@@ -167,7 +167,7 @@ public class RouterController {
return
routerEntityList
;
}
public
RouterEntity
executeRouteAll
(
String
routeServiceIds
)
{
public
RouterEntity
routeTree
(
String
routeServiceIds
)
{
if
(
StringUtils
.
isEmpty
(
routeServiceIds
))
{
throw
new
PluginException
(
"Route serviceIds is empty"
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment