/**
* 文件：UserService.java
* 版本：1.0.0
* 日期：
* Copyright &reg; 
* All right reserved.
*/

package com.mortals.xhx.base.system.user.service;

import com.mortals.framework.common.Rest;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Result;
import com.mortals.framework.service.ICRUDCacheService;
import com.mortals.framework.service.ICRUDService;
import com.mortals.framework.service.IUser;
import com.mortals.xhx.base.system.menu.model.MenuEntity;
import com.mortals.xhx.base.system.user.dao.UserDao;
import com.mortals.xhx.base.system.user.model.UserEntity;

import java.util.List;
import java.util.Set;

/**
 * <p>Title: 用户信息</p>
 * <p>Description: UserService service接口 </p>
 * <p>Copyright: Copyright &reg;  </p>
 * <p>Company: </p>
 * @author 
 * @version 1.0.0
 */

public interface UserService extends ICRUDCacheService<UserEntity,Long> {


    /**
     * 通过登录用户获取菜单功能权限
     *
     * @param user
     * @return
     */
     List<MenuEntity> findOutlookBarList(IUser user);

    /**
     * 查询用户所有有权限的菜单ID
     *
     * @param userEntity
     * @return
     */
    Set<Long> findAllAuthIds(UserEntity userEntity) throws AppException;

    Rest<Void> refreshUser();

    UserDao getUserDao();

}