package com.fdkankan.ucenter.mapper;

import com.fdkankan.ucenter.entity.FolderScene;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fdkankan.ucenter.vo.response.GroupByCount;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 文件夹和场景关联表 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2022-07-08
 */
@Mapper
public interface IFolderSceneMapper extends BaseMapper<FolderScene> {

    FolderScene getByTypeNum(@Param("num")String num, @Param("type")Integer type);
    FolderScene getByType(@Param("sceneId")String sceneId, @Param("type")Integer type);

    List<GroupByCount> getGroupByFolderIds(@Param("folderIds") List<Long> folderIds);
}
