You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
888 B
25 lines
888 B
4 years ago
|
package com.epmet.feign;
|
||
|
|
||
|
import com.epmet.commons.tools.constant.ServiceConstant;
|
||
|
import com.epmet.commons.tools.utils.Result;
|
||
|
import com.epmet.dto.result.CorsConfigResultDTO;
|
||
|
import com.epmet.feign.fallback.EpmetAdminOpenFeignClientFallback;
|
||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||
|
|
||
|
import java.util.List;
|
||
|
|
||
|
@FeignClient(name = ServiceConstant.EPMET_ADMIN_SERVER, fallback = EpmetAdminOpenFeignClientFallback.class)
|
||
|
//@FeignClient(name = ServiceConstant.EPMET_ADMIN_SERVER, fallback = EpmetAdminOpenFeignClientFallback.class, url = "localhost:8082")
|
||
|
public interface EpmetAdminOpenFeignClient {
|
||
|
|
||
|
/**
|
||
|
* @Description 查询跨域配置列表
|
||
|
* @return
|
||
|
* @author wxz
|
||
|
* @date 2021.06.25 10:00
|
||
|
*/
|
||
|
@PostMapping("/sys/cors-config/list")
|
||
|
Result<List<CorsConfigResultDTO>> list();
|
||
|
}
|