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

leisure.springboot.authorization.UserInfoService Maven / Gradle / Ivy

The newest version!
package leisure.springboot.authorization;

import java.util.Map;

public interface UserInfoService {

    /**
     * 根据token获取用户id
     *
     * @param token
     * @return
     */
    Map getUser(String token);


    /**
     * 根据token验证用户是否合法
     *
     * @param token
     * @return
     */
    boolean validateUser(String token);

    /**
     * 根据token验证用户是否合法
     * judgeRole 定义是否判断权限
     * @param token
     * @param judgeRole
     * @param url
     * @param mname
     * @return
     */
    boolean validateUser(String token, boolean judgeRole, String url,String mname);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy