package org.xyzh.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.xyzh.common.dto.permission.TbResourcePermission;
import org.xyzh.common.vo.ResourcePermissionVO;

import java.util.List;

/**
 * @description 资源权限Mapper接口
 * @filename ResourcePermissionMapper.java
 * @author yslg
 * @copyright xyzh
 * @since 2025-10-29
 */
@Mapper
public interface ResourcePermissionMapper extends BaseMapper<TbResourcePermission> {
    
    /**
     * @description 插入资源权限
     * @param permission 资源权限对象
     * @return int 插入结果
     * @author yslg
     * @since 2025-10-29
     */
    int insertResourcePermission(TbResourcePermission permission);
    
    /**
     * @description 批量插入资源权限
     * @param permissions 资源权限列表
     * @return int 插入结果
     * @author yslg
     * @since 2025-10-29
     */
    int batchInsertResourcePermission(@Param("list") List<TbResourcePermission> permissions);
    
}

