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

import com.github.microservice.components.data.mongo.mongo.dao.MongoDao;
import com.zhongshu.card.client.type.project.ProjectDictType;
import com.zhongshu.card.server.core.dao.projectAbout.extend.ProjectDictDaoExtend;
import com.zhongshu.card.server.core.domain.org.ProjectDict;

import java.util.List;

/**
 * @author TRX
 * @date 2024/3/21
 */
public interface ProjectDictDao extends MongoDao<ProjectDict>, ProjectDictDaoExtend {

    List<ProjectDict> findByIdIn(List<String> ids);

    ProjectDict findTopById(String id);

    ProjectDict findTopByProjectOidAndNameAndDictType(String projectOid, String name, ProjectDictType dictType);

    ProjectDict findTopByProjectOidAndCodeAndDictType(String projectOid, String code, ProjectDictType dictType);
}
