forked from rongchao/epmet-cloud-rizhao
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.
32 lines
830 B
32 lines
830 B
/**
|
|
* Copyright (c) 2018 人人开源 All rights reserved.
|
|
*
|
|
* https://www.renren.io
|
|
*
|
|
* 版权所有,侵权必究!
|
|
*/
|
|
|
|
package com.epmet.feign;
|
|
|
|
import com.epmet.commons.tools.constant.ServiceConstant;
|
|
import com.epmet.commons.tools.security.bo.ResourceBO;
|
|
import com.epmet.feign.fallback.ResourceFeignClientFallback;
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* 资源
|
|
*
|
|
* @author Mark sunlightcs@gmail.com
|
|
* @since 1.0.0
|
|
*/
|
|
@FeignClient(name = ServiceConstant.EPMET_ADMIN_SERVER, fallback = ResourceFeignClientFallback.class,url = "http://localhost:8082")
|
|
public interface ResourceFeignClient {
|
|
/**
|
|
* 获取所有资源列表
|
|
*/
|
|
@GetMapping("sys/resource/list")
|
|
List<ResourceBO> list();
|
|
}
|
|
|