package com.zhongshu.card.server.core.dao.devices;

import com.github.microservice.components.data.mongo.mongo.dao.MongoDao;
import com.zhongshu.card.server.core.domain.devices.permiss.UserPermissDataCache;

import java.util.List;

/**
 * @author TRX
 * @date 2024/3/21
 */
public interface UserPermissDataCacheDao extends MongoDao<UserPermissDataCache> {

    UserPermissDataCache findTopByDataIdAndProjectOid(String dataId, String projectOid);

    List<UserPermissDataCache> findByDataIdInAndProjectOid(List<String> dataIds, String projectOid);
}
