package com.persagy.bdtp.adm.client;

import com.persagy.dmp.basic.config.DigitalFeignConfig;
import feign.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "image-service", configuration = DigitalFeignConfig.class,
		url = "http://api.sagacloud.cn/dp-auxiliary/image-service")
public interface ImageServiceClient {

	@GetMapping(value = "/common/file_get", consumes = MediaType.APPLICATION_OCTET_STREAM_VALUE)
	Response fileGet(@RequestParam String key, @RequestParam String systemId);

}
