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);
|
}
|