All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fun.fengwk.gateway.share.context.GatewayContext Maven / Gradle / Ivy

The newest version!
package fun.fengwk.gateway.share.context;

/**
 * @author fengwk
 */
public interface GatewayContext {

    /**
     * 获取当前客户端的真实IP
     *
     * @return 客户端的真实IP
     */
    String getRealIp();

    /**
     * 获取当前访问用户的命名空间
     *
     * @return 访问用户的命名空间
     */
    String getAccessUserNamespace();

    /**
     * 当前访问用户的id
     *
     * @return 访问用户的id
     */
    Long getAccessUserId();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy