/**
 * Copyright 2018-2020 stylefeng & fengshuonan (sn93@qq.com)
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.sckw.core.model.auth;

import java.util.Set;

/**
 * 登录中的用户信息
 * <p>
 * 为何类型是泛型，因为具体的项目不知道类型是什么
 * @author fengshuonan
 * @date 2017-11-09-下午5:47
 */
public interface AbstractLoginUser {

    /**
     * @description 获取用户唯一id
     * @author fengshuonan
     * @Date 2018/8/10 9:49
     * @return
     **/
    <T> T getUserUniqueId();

    /**
     * @description 获取用户唯一id
     * @author fengshuonan
     * @Date 2018/8/10 9:49
     * @return
     **/
    <T> T getAppId();

    /**
     * @description 获取角色id的集合
     * @author fengshuonan
     * @Date 2018/8/10 9:49
     * @return
     **/
    <T> Set<T> getRoleIds();

    /**
     * @description 角色编码集合
     * @author fengshuonan
     * @Date 2018/8/10 9:49
     * @return
     **/
    <T> Set<T> getRoleCodes();

    /**
     * @description 包含的资源权限url
     * @author fengshuonan
     * @Date 2018/8/10 9:49
     * @return
     **/
    <T> Set<T> getResourceUrls();

}
