Commit a009c81c by Nepxion

修改返回值

parent 9c7e7a97
...@@ -84,7 +84,7 @@ public class AdminEndpoint extends AbstractMvcEndpoint { ...@@ -84,7 +84,7 @@ public class AdminEndpoint extends AbstractMvcEndpoint {
throw new PluginException("To input stream failed", e); throw new PluginException("To input stream failed", e);
} }
return "Send config successfully"; return "success";
} }
@RequestMapping(path = "view", method = RequestMethod.GET) @RequestMapping(path = "view", method = RequestMethod.GET)
...@@ -115,7 +115,7 @@ public class AdminEndpoint extends AbstractMvcEndpoint { ...@@ -115,7 +115,7 @@ public class AdminEndpoint extends AbstractMvcEndpoint {
LOG.info("Deregister for serviceId={} successfully", registration.getServiceId()); LOG.info("Deregister for serviceId={} successfully", registration.getServiceId());
return "Deregister successfully"; return "success";
} }
@RequestMapping(path = "status", method = RequestMethod.POST) @RequestMapping(path = "status", method = RequestMethod.POST)
...@@ -135,6 +135,6 @@ public class AdminEndpoint extends AbstractMvcEndpoint { ...@@ -135,6 +135,6 @@ public class AdminEndpoint extends AbstractMvcEndpoint {
LOG.info("Set status for serviceId={} status={} successfully", registration.getServiceId(), status); LOG.info("Set status for serviceId={} status={} successfully", registration.getServiceId(), status);
return "Set status successfully"; return "success";
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment