ISvgGenerationApiClient.java 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. package com.hdkj.lt.feign;
  2. import com.hdkj.lt.base.constants.SystemGlobalConstant;
  3. import com.hdkj.lt.feign.fallback.SvgGenerationApiClientFallBack;
  4. import com.hdkj.lt.modle.dto.svg.DynamicSvgDTO;
  5. import com.hdkj.lt.modle.dto.svg.DynamicSvgDetailDTO;
  6. import com.hdkj.lt.modle.vo.svg.DynamicSvgVO;
  7. import com.hdkj.hussar.ApiResponse;
  8. import org.springframework.cloud.openfeign.FeignClient;
  9. import org.springframework.web.bind.annotation.PostMapping;
  10. /**
  11. * @Description
  12. * @Author wcx
  13. * @Date 2025/6/30 11:09
  14. * @Version 1.0
  15. */
  16. @FeignClient(value = SystemGlobalConstant.SERVICE_NAME_SVG_GENERATION,contextId = "ISvgGenerationApiClient", fallbackFactory = SvgGenerationApiClientFallBack.class)
  17. public interface ISvgGenerationApiClient {
  18. // 根据线路保存文件信息
  19. String API_MAPPING_SERVICE_DYNAMIC_SVG = "free/ct/getXlYjll";
  20. // 根据线路保存文件详图
  21. String API_MAPPING_SERVICE_DYNAMIC_SVG_DETAIL = "free/ct/getXlYjllXt";
  22. @PostMapping(API_MAPPING_SERVICE_DYNAMIC_SVG)
  23. ApiResponse<DynamicSvgVO> queryDynamicSvg(DynamicSvgDTO dynamicSvgDTO);
  24. @PostMapping(API_MAPPING_SERVICE_DYNAMIC_SVG_DETAIL)
  25. ApiResponse<DynamicSvgVO> queryDynamicSvgDetail(DynamicSvgDetailDTO dynamicSvgDetailDTO);
  26. }