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

import com.github.microservice.components.data.mongo.mongo.dao.MongoDao;
import com.zhongshu.card.server.core.domain.config.ProjectUserConfig;

import java.util.List;

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

    ProjectUserConfig findTopById(String id);

    ProjectUserConfig findTopByProjectOidAndUserIdAndKey(String projectOid, String userId, String key);

    List<ProjectUserConfig> findByProjectOidAndUserIdAndKeyIn(String projectOid, String userId, List<String> keys);

}
