
package cn.orionsec.ops.service.api;

import cn.orionsec.ops.entity.domain.ApplicationPipelineDetailDO;
import cn.orionsec.ops.entity.vo.app.ApplicationPipelineDetailVO;

import java.util.List;

public interface ApplicationPipelineDetailService {

    /**
     * 通过 pipelineId 查询
     *
     * @param pipelineId pipelineId
     * @return rows
     */
    List<ApplicationPipelineDetailVO> getByPipelineId(Long pipelineId);

    /**
     * 通过 pipelineId 查询
     *
     * @param pipelineId pipelineId
     * @return rows
     */
    List<ApplicationPipelineDetailDO> selectByPipelineId(Long pipelineId);

    /**
     * 通过 pipelineId 查询
     *
     * @param pipelineIdList pipelineIdList
     * @return rows
     */
    List<ApplicationPipelineDetailDO> selectByPipelineIdList(List<Long> pipelineIdList);

    /**
     * 通过 pipelineId 删除
     *
     * @param pipelineId pipelineId
     * @return effect
     */
    Integer deleteByPipelineId(Long pipelineId);

    /**
     * 通过 pipelineId 删除
     *
     * @param pipelineIdList pipelineIdList
     * @return effect
     */
    Integer deleteByPipelineIdList(List<Long> pipelineIdList);

    /**
     * 通过 profileId 删除
     *
     * @param profileId profileId
     * @return effect
     */
    Integer deleteByProfileId(Long profileId);

    /**
     * 通过 appId 删除
     *
     * @param appId appId
     * @return effect
     */
    Integer deleteByAppId(Long appId);

}
