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

import com.qqchen.deploy.backend.deploy.dto.EnvironmentDTO;
import com.qqchen.deploy.backend.deploy.entity.Environment;
import com.qqchen.deploy.backend.deploy.query.EnvironmentQuery;
import com.qqchen.deploy.backend.framework.service.IBaseService;

import java.util.List;

/**
 * 环境服务接口
 */
public interface IEnvironmentService extends IBaseService<Environment, EnvironmentDTO, EnvironmentQuery, Long> {
    
    /**
     * 获取项目的环境列表
     *
     * @param projectGroupId 项目ID
     * @return 环境列表
     */
    List<EnvironmentDTO> getProjectEnvironments(Long projectGroupId);

    /**
     * 更新项目的环境配置
     *
     * @param projectId 项目ID
     * @param environmentIds 环境ID列表
     */
    void updateProjectEnvironments(Long projectId, List<Long> environmentIds);
} 