using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using IoTIntegrationPlatform.Model.common; using IoTIntegrationPlatform.Model.Model; namespace IoTIntegrationPlatform.Interface { public interface ITaskSchedulingService { /// /// 获取任务信息 /// /// /// ScheduledTaskInfo GetTaskInfo(BaseParm parm); /// /// 获取任务列表 /// /// /// /// List GetTakList(); /// /// 获取定时任务列表[分页] /// /// /// /// List GetTakList(BaseParm parm, ref int page); /// /// 添加任务 /// /// /// ScheduledTaskInfo AddTask(ScheduledTaskInfo model); /// /// 编辑任务 /// /// /// bool UpdateTask(ScheduledTaskInfo model); /// /// 编辑定时任务最后执行时间 /// /// /// bool UpdateTaskLastRunTime(ScheduledTaskInfo model); /// /// 编辑定时任务状态 /// /// /// bool UpdateTaskStaus(ScheduledTaskInfo model); /// /// 批量修改任务 /// /// /// bool BatchUpdateTask(List list); /// /// 删掉任务 /// /// /// bool DeleteTask(int id); /// /// 获取任务日志列表 /// /// /// /// List GetTakLogList(BaseParm parm, ref int totalPage); /// /// 添加任务日志 /// /// /// 执行状态 1:成功 2:失败 /// /// bool AddTaskLog(int taskId, int state, string content); } }