package com.qqchen.deploy.backend.deploy.api;

import com.qqchen.deploy.backend.framework.controller.BaseController;
import com.qqchen.deploy.backend.deploy.entity.JenkinsJob;
import com.qqchen.deploy.backend.deploy.dto.JenkinsJobDTO;
import com.qqchen.deploy.backend.deploy.query.JenkinsJobQuery;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import jakarta.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * Jenkins工作 Controller
 */
@Slf4j
@RestController
@RequestMapping("/api/v1/jenkins-job")
@Tag(name = "Jenkins工作管理", description = "Jenkins工作管理相关接口")
public class JenkinsJobApiController extends BaseController<JenkinsJob, JenkinsJobDTO, Long, JenkinsJobQuery> {
    
    @Override
    protected void exportData(HttpServletResponse response, List<JenkinsJobDTO> data) {
        // TODO: 实现导出逻辑
        log.info("导出Jenkins工作数据，数据量：{}", data.size());
    }
} 