package org.sxkj.tools.feign;
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.sxkj.tools.model.TifConvertResult;
|
|
import java.util.Map;
|
|
/**
|
* py-tools 服务远程调用
|
* @author zhongrj
|
* @date 2025-12-11
|
*/
|
@FeignClient(
|
value = "py-tools-service",
|
url = "${python.service.urls.py-tools-service:}"
|
)
|
public interface ITifConvertClient {
|
|
/**
|
* 调用python 工具服务将 tif 转 jpeg 并压缩
|
* @param params
|
* @return
|
*/
|
@PostMapping("/pyapi/tif_conv_jpeg")
|
TifConvertResult tifConvJpeg(@RequestBody Map<String, Object> params);
|
|
}
|