package com.seer.teach.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.seer.teach.user.entity.AuthorityEntity;

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

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Captain
 * @since 2024-01-19
 */
public interface IAuthorityService extends IService<AuthorityEntity> {


    /**
     * 根据用户id获取权限列表
     *
     * @param userId
     * @return 权限列表
     */
    List<AuthorityEntity> getPermissionsByUserId(Integer userId);

    List<AuthorityEntity> getListByIdsAndModule(Collection<Integer> ids, String module);
}