ManagementFeignService.java 1009 B

1234567891011121314151617181920212223242526272829303132
  1. package com.huimv.datacollection.feign;
  2. import com.huimv.common.utils.R;
  3. import com.huimv.datacollection.entity.WarningInfoEntity;
  4. import org.springframework.cloud.openfeign.FeignClient;
  5. import org.springframework.web.bind.annotation.GetMapping;
  6. import org.springframework.web.bind.annotation.PathVariable;
  7. import org.springframework.web.bind.annotation.PostMapping;
  8. import org.springframework.web.bind.annotation.RequestBody;
  9. import java.util.Map;
  10. /**
  11. * <p>
  12. * 微服务management提供feign接口
  13. * </p>
  14. *
  15. * @author yinhao
  16. * @date 2021/7/6 9:24
  17. */
  18. @FeignClient(value = "huimv-smart-management")
  19. public interface ManagementFeignService {
  20. @GetMapping("/management/thresholdManagement/selectByType/{type}")
  21. Map<String,Double> selectByType(@PathVariable("type") Short type);
  22. @GetMapping("/management/device/info/{deviceId}")
  23. R info(@PathVariable("deviceId") String deviceId);
  24. @PostMapping("/management/warningInfo/save")
  25. R save(@RequestBody WarningInfoEntity warningInfo);
  26. }