package com.zd.system.api.kkFile;

import com.zd.system.api.kkFile.factory.RemoteKkFileServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.net.URI;

/**
 * 文件远程调用
 */
@FeignClient(name = "remoteKkFileService",url = "http://127.0.0.1:8012", fallbackFactory = RemoteKkFileServiceFallbackFactory.class)
public interface RemoteKkFileService {
    @GetMapping("/onlinePreview")
    String getKkFilePath(URI uri,@RequestParam("url") String url);
}
