EndPointController.java 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. package com.yihu.hos.controllers;
  2. import io.swagger.annotations.ApiOperation;
  3. import io.swagger.annotations.ApiParam;
  4. import org.springframework.web.bind.annotation.*;
  5. /**
  6. * @created Airhead 2016/8/1.
  7. */
  8. @RestController
  9. @RequestMapping("/service")
  10. @Deprecated //直接由Arbiter来提供相关接串口,这样可以避免循环依赖
  11. public class EndPointController {
  12. @RequestMapping(value = "/", produces = "application/json;charset=UTF-8", method = RequestMethod.POST)
  13. @ResponseBody
  14. @ApiOperation(value = "登记服务信息", produces = "application/json", notes = "登记服务信息,当服务启动时调用,及定期调用。")
  15. public void save(
  16. @ApiParam(name = "service", value = "服务信息", required = true)
  17. @RequestParam(value = "service") String service) {
  18. }
  19. @RequestMapping(value = "/", produces = "application/json;charset=UTF-8", method = RequestMethod.GET)
  20. @ResponseBody
  21. @ApiOperation(value = "获取服务信息", produces = "application/json", notes = "获取服务信息")
  22. public String get(
  23. @ApiParam(name = "serviceName", value = "服务名称", required = true)
  24. @RequestParam(value = "serviceName") String serviceName) {
  25. return "";
  26. }
  27. }