2024-09-27 12:21:17 +08:00
|
|
|
package cn.bunny.services.mapper;
|
|
|
|
|
|
|
|
import cn.bunny.dao.entity.system.Power;
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <p>
|
|
|
|
* Mapper 接口
|
|
|
|
* </p>
|
|
|
|
*
|
|
|
|
* @author Bunny
|
|
|
|
* @since 2024-09-26
|
|
|
|
*/
|
|
|
|
@Mapper
|
|
|
|
public interface PowerMapper extends BaseMapper<Power> {
|
|
|
|
/**
|
|
|
|
* * 根据用户id查询当前用户所有角色
|
|
|
|
*
|
|
|
|
* @param userId 用户id
|
|
|
|
*/
|
|
|
|
@NotNull
|
|
|
|
List<Power> selectListByUserId(long userId);
|
2024-09-27 16:49:01 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* * 根据权限码查询可以访问URL
|
|
|
|
*
|
|
|
|
* @param powerCodes 权限码
|
|
|
|
* @return 权限列表
|
|
|
|
*/
|
|
|
|
List<Power> selectListByPowerCodes(List<String> powerCodes);
|
2024-09-27 12:21:17 +08:00
|
|
|
}
|