package com.sckw.core.model.auth.context;

import com.sckw.core.model.auth.AbstractLoginUser;

/**
 * 快速获取登录信息上下文
 * @author fengshuonan
 * @date 2018-02-05 16:58
 */
public interface AbstractLoginContext {

    /**
     * @description 获取当前用户的token
     * @author fengshuonan
     * @dae 018-02-05 9:49
     * @return token
     **/
    String getCurrentUserToken();

    /**
     * @description 获取当前用户
     * @author fengshuonan
     * @dae 2018-02-05 9:49
     * @return
     **/
    <T extends AbstractLoginUser> T getLoginUser();
}
