package com.qqchen.deploy.backend.deploy.service;

import com.qqchen.deploy.backend.deploy.dto.TeamEnvironmentConfigDTO;
import com.qqchen.deploy.backend.deploy.entity.TeamEnvironmentConfig;
import com.qqchen.deploy.backend.deploy.query.TeamEnvironmentConfigQuery;
import com.qqchen.deploy.backend.framework.service.IBaseService;

import java.util.List;

/**
 * 团队环境配置Service接口
 *
 * @author qqchen
 * @since 2025-11-04
 */
public interface ITeamEnvironmentConfigService extends IBaseService<TeamEnvironmentConfig, TeamEnvironmentConfigDTO, TeamEnvironmentConfigQuery, Long> {

    /**
     * 根据团队ID查询所有环境配置
     */
    List<TeamEnvironmentConfigDTO> findByTeamId(Long teamId);

    /**
     * 根据团队ID和环境ID查询配置
     */
    TeamEnvironmentConfigDTO findByTeamIdAndEnvironmentId(Long teamId, Long environmentId);

    /**
     * 检查团队环境配置是否存在
     */
    boolean exists(Long teamId, Long environmentId);
}

