fajiao
2 years ago
12 changed files with 101 additions and 75 deletions
@ -0,0 +1,18 @@ |
|||||
|
namespace Cis.Application.Sys.SeedData; |
||||
|
|
||||
|
public class SysDictDataSeedData : ISqlSugarEntitySeedData<SysDictData> |
||||
|
{ |
||||
|
public IEnumerable<SysDictData> HasData() |
||||
|
{ |
||||
|
return new SysDictData[] |
||||
|
{ |
||||
|
new(){Id=358769934100001, DictTypeId=358728043100001, Code="HiK", Value="1", Order=100, Remark="海康相机", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-11-30 00:00:00")}, |
||||
|
new(){Id=358769934100002, DictTypeId=358728043100001, Code="DaHua", Value="2", Order=100, Remark="大华相机", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-11-30 00:00:00")}, |
||||
|
new(){Id=358769934100003, DictTypeId=358728043100001, Code="YuShi", Value="3", Order=100, Remark="宇视相机", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-11-30 00:00:00")}, |
||||
|
|
||||
|
new(){Id=358769934100011, DictTypeId=358728043100002, Code="HiK", Value="8000", Order=100, Remark="海康sdk端口", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-11-30 00:00:00")}, |
||||
|
new(){Id=358769934100012, DictTypeId=358728043100002, Code="DaHua", Value="37777", Order=100, Remark="大华sdk端口", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-11-30 00:00:00")}, |
||||
|
new(){Id=358769934100013, DictTypeId=358728043100002, Code="YuShi", Value="8800", Order=100, Remark="宇视sdk端口", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-11-30 00:00:00")}, |
||||
|
}; |
||||
|
} |
||||
|
} |
@ -0,0 +1,13 @@ |
|||||
|
namespace Cis.Application.Sys.SeedData; |
||||
|
|
||||
|
public class SysDictTypeSeedData : ISqlSugarEntitySeedData<SysDictType> |
||||
|
{ |
||||
|
public IEnumerable<SysDictType> HasData() |
||||
|
{ |
||||
|
return new SysDictType[] |
||||
|
{ |
||||
|
new(){ Id=358728043100001, Name="相机类型", Code="camera_type", Order=100, Remark="相机类型", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-11-30 00:00:00")}, |
||||
|
new(){ Id=358728043100002, Name="相机SDK端口", Code="camera_sdk_port", Order=100, Remark="相机SDK端口", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-11-30 00:00:00")}, |
||||
|
}; |
||||
|
} |
||||
|
} |
@ -1,19 +0,0 @@ |
|||||
namespace Cis.Core; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// 缓存类型枚举
|
|
||||
/// </summary>
|
|
||||
public enum CacheTypeEnum |
|
||||
{ |
|
||||
/// <summary>
|
|
||||
/// 内存缓存
|
|
||||
/// </summary>
|
|
||||
[Description("内存缓存")] |
|
||||
Memory, |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Redis缓存
|
|
||||
/// </summary>
|
|
||||
[Description("Redis缓存")] |
|
||||
Redis |
|
||||
} |
|
Loading…
Reference in new issue