package jnpf.util.auth;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 对外 HTTP 与 Feign 契约：{@link V2AuthPermissionApi}
 */
@RestController
@RequestMapping("/permission/auth")
public class V2AuthPermissionController implements V2AuthPermissionApi {

    @Resource
    private V2AuthPermissionUtils v2AuthPermissionUtils;

    @Override
    public List<String> getLoginUserAuthOrganizeIds() {
        return v2AuthPermissionUtils.getLoginUserAuthOrganizeIds();
    }
}
