Blame view

netcore/src/Modularity/TaskSchedule/NCC.TaskScheduler.Interfaces/ITimeTaskService.cs 1.86 KB
96009bc9   hexiaodong   hxd
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
  using NCC.TaskScheduler.Entitys.Entity;
  using System.Collections.Generic;
  using System.Threading.Tasks;
  
  namespace NCC.TaskScheduler.Interfaces.TaskScheduler
  {
      /// <summary>
      /// 定时任务
      ///  本:V1.20.15
      ///  权:Wesleyhttps://www.NCCsoft.com
      ///  者:NCC开发平台组
      ///  期:2022-03-16 
      /// </summary>
      public interface ITimeTaskService
      {
          /// <summary>
          /// 列表
          /// </summary>
          /// <returns></returns>
          Task<List<TimeTaskEntity>> GetList();
  
          /// <summary>
          /// 信息
          /// </summary>
          /// <param name="id"></param>
          /// <param name="tenantDic">租户信息</param>
          /// <returns></returns>
          Task<TimeTaskEntity> GetInfo(string id, Dictionary<string, string> tenantDic = null);
  
          /// <summary>
          /// 删除
          /// </summary>
          /// <param name="entity">实体对象</param>
          /// <returns></returns>
          Task<int> Delete(TimeTaskEntity entity);
  
          /// <summary>
          /// 创建
          /// </summary>
          /// <param name="entity">实体对象</param>
          /// <returns></returns>
          Task<TimeTaskEntity> Create(TimeTaskEntity entity);
  
          /// <summary>
          /// 更新
          /// </summary>
          /// <param name="entity">实体对象</param>
          /// <returns></returns>
          Task<int> Update(TimeTaskEntity entity, Dictionary<string, string> tenantDic = null);
  
          /// <summary>
          /// 执行记录
          /// </summary>
          /// <param name="entity">实体对象</param>
          /// <returns></returns>
          Task<int> CreateTaskLog(TimeTaskLogEntity entity, Dictionary<string, string> tenantDic = null);
  
          /// <summary>
          /// 启动自启动任务
          /// </summary>
          void StartTimerJob();
      }
  }