package shop.alien.api.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 请求超时测试
 *
 * @author ssk
 * @version 1.0
 * @date 2024/10/24 10:19
 */
@FeignClient(url = "http://localhost:8008", name = "timeOut")
public interface TimeOutFeign {

    @GetMapping("/timeout/timeout")
    String timeout(@RequestParam(value = "timeout") Long timeout);

}
