PortalFeignClient.java
1.2 KB
package com.hotent.Feign;
import com.hotent.Feign.exception.PortalFeignFallbackException;
import com.hotent.entity.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
/**
* @Author: Cola
* @Date: 2021/08/20/18:20
* @Description:
**/
@FeignClient(name="${eip.feignClient.portal:eip-portal}",contextId = "api-manager-eip-portal",fallbackFactory = PortalFeignFallbackException.class)
public interface PortalFeignClient {
// 根据可以key获取分类
@RequestMapping(value="/${openApi.prefix}/sys/sysType/v1/getTypesByKey", method= RequestMethod.GET, produces = { "application/json; charset=utf-8" })
public CommonResult getTypesByKey(@RequestParam(value = "typeKey") String typeKey) throws Exception;
// 获取下一个流水号
@RequestMapping(value="/${openApi.prefix}/sys/identity/v1/getNextIdByAlias",method= RequestMethod.GET, produces = { "application/json; charset=utf-8" })
public CommonResult<String> getNextIdByAlias( @RequestParam(value = "alias") String alias) throws Exception;
}