xiangpei
2025-04-18 ccadf9480d4e6a9dcc227a2a0b1f9ae0612e36fd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
package com.monkeylessey.job.service;
 
import com.baomidou.mybatisplus.extension.service.IService;
import com.monkeylessey.job.domain.entity.SysJob;
import com.monkeylessey.job.domain.form.SysJobForm;
import com.monkeylessey.job.domain.query.SysJobQuery;
import com.monkeylessey.response.Result;
 
import java.util.List;
 
/**
 * 定时任务表 服务类
 *
 * @author 向培
 * @since 2022-06-08
 */
public interface SysJobService extends IService<SysJob> {
 
    /**
     * 添加定时任务表
     *
     * @param form
     * @return
     */
    Result addSysJob(SysJobForm form);
 
    /**
     * 修改定时任务表
     *
     * @param form
     * @return
     */
    Result editSysJob(SysJobForm form);
 
    /**
     * 根据id删除定时任务表
     *
     * @param id
     * @return
     */
    Result deleteSysJobById(String id);
 
    /**
     * 批量删除菜单
     *
     * @param ids
     * @return
     */
    Result deleteSysJobByIds(List<String> ids);
 
    /**
     * 分页查询定时任务表
     *
     * @param query
     * @return
     */
    Result getSysJobByPage(SysJobQuery query);
 
    /**
     * 根据id查找定时任务表
     *
     * @param id
     * @return
     */
    Result getSysJobById(String id);
 
    /**
     * 执行任务一次
     *
     * @param form
     * @return
     */
    Result executeJobOnce(SysJobForm form);
 
    /**
     * 暂停任务
     *
     * @param form
     * @return
     */
    Result pauseJob(SysJobForm form);
 
    /**
     * 启动任务
     *
     * @param form
     * @return
     */
    Result startJob(SysJobForm form);
}