You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.3 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.aurora.service;
import com.aurora.model.dto.JobDTO;
import com.aurora.entity.Job;
import com.aurora.model.dto.PageResultDTO;
import com.aurora.model.vo.*;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
public interface JobService extends IService<Job> {
void saveJob(JobVO jobVO);
void updateJob(JobVO jobVO);//导入作业值对象JobVO用于接收前端传递的作业新增或修改参数通常需要校验作业是否存在且未被执行中
void deleteJobs(List<Integer> tagIds);//批量删除作业根据ID列表物理删除或逻辑删除
JobDTO getJobById(Integer jobId);
PageResultDTO<JobDTO> listJobs(JobSearchVO jobSearchVO);// 导入作业搜索值对象JobSearchVO用于封装前端传递的复杂查询参数如关键词、状态、时间范围等筛选条件
void updateJobStatus(JobStatusVO jobStatusVO);// 导入作业状态值对象JobStatusVO用于接收作业状态更新参数如启用、禁用等操作
//该方法会绕过正常的调度计划,立即触发作业执行一次
void runJob(JobRunVO jobRunVO);// 导入作业运行值对象JobRunVO用于接收立即执行作业的参数如作业ID、执行参数等
List<String> listJobGroups();
}