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

import com.qqchen.deploy.backend.framework.controller.BaseController;
import com.qqchen.deploy.backend.schedule.dto.ScheduleJobLogDTO;
import com.qqchen.deploy.backend.schedule.entity.ScheduleJobLog;
import com.qqchen.deploy.backend.schedule.query.ScheduleJobLogQuery;
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;

/**
 * 定时任务执行日志API控制器
 * 
 * @author qichen
 */
@Slf4j
@RestController
@RequestMapping("/api/v1/schedule/job-logs")
@Tag(name = "定时任务执行日志", description = "查询任务执行历史日志")
public class ScheduleJobLogApiController extends BaseController<ScheduleJobLog, ScheduleJobLogDTO, Long, ScheduleJobLogQuery> {

    @Override
    protected void exportData(jakarta.servlet.http.HttpServletResponse response, java.util.List<ScheduleJobLogDTO> data) {
        // TODO: 实现日志导出功能
        throw new UnsupportedOperationException("日志导出功能暂未实现");
    }
}

