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
| using Furion.DatabaseAccessor;
| using Furion.TaskScheduler;
| using Microsoft.EntityFrameworkCore;
|
| namespace Admin.NET.Core
| {
| /// <summary>
| /// 系统任务调度表种子数据
| /// </summary>
| public class SysTimerSeedData : IEntitySeedData<SysTimer>
| {
| /// <summary>
| /// 种子数据
| /// </summary>
| /// <param name="dbContext"></param>
| /// <param name="dbContextLocator"></param>
| /// <returns></returns>
| public IEnumerable<SysTimer> HasData(DbContext dbContext, Type dbContextLocator)
| {
| return new[]
| {
| new SysTimer
| {
| Id = 142307070910556,
| JobName = "百度api",
| DoOnce = false,
| StartNow = false,
| Interval = 5,
| TimerType = SpareTimeTypes.Interval,
| ExecuteType = SpareTimeExecuteTypes.Serial,
| RequestUrl = "https://www.baidu.com",
| RequestType = RequestTypeEnum.Post,
| IsDeleted =false,
| Remark = "接口API"
| }
| };
| }
| }
| }
|
|