package com.github.wxiaoqi.security.gate.feign;

import com.github.wxiaoqi.security.api.vo.authority.PermissionInfo;
import com.github.wxiaoqi.security.gate.fallback.UserServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;


/**
 *
 * @author keliii
 */
@FeignClient(value = "ace-admin",fallback = UserServiceFallback.class)
public interface IAppUserService {
  @RequestMapping(value="/api/app/user/un/{username}/permissions",method = RequestMethod.GET)
  List<PermissionInfo> getPermissionByUsername(@PathVariable("username") String username);
}
