UCFeignClient.java 871 Bytes
package com.hotent.Feign;

import com.hotent.Feign.exception.UCFeignFallBackException;
import com.hotent.entity.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: Cola
 * @Date: 2021/08/17/11:12
 * @Description: eip-uc微服务远程接口
 **/

@FeignClient(name="${eip.feignClient.uc:eip-uc}",contextId = "api-manager-eip-uc",fallbackFactory = UCFeignFallBackException.class)
public interface UCFeignClient {
    // 获取对外接口访问的Token"
    @GetMapping("/apiManager/getToken")
    public CommonResult getApiToken(@RequestParam(value = "sysCode")String sysCode, @RequestParam(value = "secretKey")String secretKey,
                                    @RequestParam(value = "account")String account);
}