using Furion.DatabaseAccessor;
using Furion.TaskScheduler;
using Microsoft.EntityFrameworkCore;
namespace Admin.NET.Core
{
///
/// 系统任务调度表种子数据
///
public class SysTimerSeedData : IEntitySeedData
{
///
/// 种子数据
///
///
///
///
public IEnumerable 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"
}
};
}
}
}