IDemoInnerServiceSMO.java 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package com.java110.intf.demo;
  2. import com.java110.config.feign.FeignConfiguration;
  3. import com.java110.dto.demo.DemoDto;
  4. import org.springframework.cloud.openfeign.FeignClient;
  5. import org.springframework.web.bind.annotation.RequestBody;
  6. import org.springframework.web.bind.annotation.RequestMapping;
  7. import org.springframework.web.bind.annotation.RequestMethod;
  8. import java.util.List;
  9. /**
  10. * @ClassName IDemoInnerServiceSMO
  11. * @Description demo接口类
  12. * @Author wuxw
  13. * @Date 2019/4/24 9:04
  14. * @Version 1.0
  15. * add by wuxw 2019/4/24
  16. **/
  17. @FeignClient(name = "${java110.store-service}", configuration = {FeignConfiguration.class})
  18. @RequestMapping("/demoApi")
  19. public interface IDemoInnerServiceSMO {
  20. /**
  21. * <p>查询小区楼信息</p>
  22. *
  23. *
  24. * @param demoDto 数据对象分享
  25. * @return DemoDto 对象数据
  26. */
  27. @RequestMapping(value = "/queryDemos", method = RequestMethod.POST)
  28. List<DemoDto> queryDemos(@RequestBody DemoDto demoDto);
  29. /**
  30. * 查询<p>小区楼</p>总记录数
  31. *
  32. * @param demoDto 数据对象分享
  33. * @return 小区下的小区楼记录数
  34. */
  35. @RequestMapping(value = "/queryDemosCount", method = RequestMethod.POST)
  36. int queryDemosCount(@RequestBody DemoDto demoDto);
  37. }