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

import com.qqchen.deploy.backend.deploy.entity.ExternalSystem;
import com.qqchen.deploy.backend.deploy.entity.JenkinsJob;
import com.qqchen.deploy.backend.deploy.entity.JenkinsView;
import com.qqchen.deploy.backend.framework.service.IBaseService;
import com.qqchen.deploy.backend.deploy.entity.JenkinsBuild;
import com.qqchen.deploy.backend.deploy.dto.JenkinsBuildDTO;
import com.qqchen.deploy.backend.deploy.query.JenkinsBuildQuery;

/**
 * Jenkins构建信息 Service接口
 */
public interface IJenkinsBuildService extends IBaseService<JenkinsBuild, JenkinsBuildDTO, JenkinsBuildQuery, Long> {

    /**
     * 同步外部系统下所有构建信息
     *
     * @param externalSystemId 外部系统ID
     * @return 同步的构建总数
     */
    Integer syncAllBuilds(Long externalSystemId);

    /**
     * 根据外部系统ID统计构建总数
     *
     * @param externalSystemId 外部系统ID
     * @return 构建总数
     */
    Long countByExternalSystemId(Long externalSystemId);
} 