Jay
2025-03-04 c350c9634dcc07db6a805d4cbc1bfea2677e61a1
提交 | 用户 | 时间
1c9291 1 package com.iailab.module.model.job.service;
L 2
3 import com.iailab.framework.common.pojo.PageResult;
4 import com.iailab.framework.common.service.BaseService;
5 import com.iailab.module.model.job.dto.ScheduleJobDTO;
6 import com.iailab.module.model.job.entity.ScheduleJobEntity;
7 import com.iailab.module.model.job.vo.ScheduleJobReqVO;
8
9
10 /**
11  * 定时任务
12  *
13  * @author Mark sunlightcs@gmail.com
14  */
15 public interface ScheduleJobService extends BaseService<ScheduleJobEntity> {
16
17     PageResult<ScheduleJobEntity> page(ScheduleJobReqVO reqVO);
18
19     ScheduleJobDTO get(Long id);
20
21     /**
22      * 保存定时任务
23      */
24     void save(ScheduleJobDTO dto);
25     
26     /**
27      * 更新定时任务
28      */
29     void update(ScheduleJobDTO dto);
30     
31     /**
32      * 批量删除定时任务
33      */
34     void deleteBatch(Long id);
35     
36     /**
37      * 批量更新定时任务状态
38      */
39     int updateBatch(Long[] ids, int status);
40     
41     /**
42      * 立即执行
43      */
44     void run(Long[] ids);
45     
46     /**
47      * 暂停运行
48      */
49     void pause(Long[] ids);
50     
51     /**
52      * 恢复运行
53      */
54     void resume(Long[] ids);
55 }