package com.kidgrow.zuul.feign; import com.kidgrow.common.constant.ServiceNameConstants; import com.kidgrow.common.model.SysMenu; import com.kidgrow.zuul.feign.fallback.MenuServiceFallbackFactory; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import java.util.List; /** * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020
* * @Description:
* @Project:
* @CreateDate: Created in 2020/2/22 14:33
* @Author: liuke */ @FeignClient(name = ServiceNameConstants.USER_SERVICE, fallbackFactory = MenuServiceFallbackFactory.class, decode404 = true) public interface MenuService { /** * 角色菜单列表 * @param roleCodes */ @GetMapping(value = "/menus/{roleCodes}") List findByRoleCodes(@PathVariable("roleCodes") String roleCodes); }