package com.xunhong.erp.turbo.rbac.infrastructure.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xunhong.erp.turbo.api.rbac.dto.qry.UserPermissionQry;
import com.xunhong.erp.turbo.rbac.infrastructure.entity.PermissionDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PermissionMapper extends BaseMapper<PermissionDO> {

	List<PermissionDO> listByRoleList(@Param("query") UserPermissionQry userPermissionQry);
}
