You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
8.3 KiB
14 lines
8.3 KiB
2 years ago
|
using Magic.Core;
|
||
|
using Magic.Core.Entity;
|
||
|
|
||
|
namespace Magic.CodeFirst;
|
||
|
|
||
|
public class SysNoticeSeedData : ISeedData , ISqlSugarEntitySeedData<SysNotice>
|
||
|
{ public IEnumerable<SysNotice> HasData()
|
||
|
{ string json = @"[{""Title"":""1"",""Content"":""1111<p></p>"",""Type"":1,""PublicUserId"":177325484421189,""PublicUserName"":""郑国静"",""PublicOrgId"":177325089079365,""PublicOrgName"":""系统机构"",""PublicTime"":""2021-07-12T11:25:31.123"",""CancelTime"":""1753-01-01T00:00:00"",""Status"":1,""CreatedTime"":""2021-07-12T11:25:25.69"",""UpdatedTime"":null,""CreatedUserId"":177325484421189,""CreatedUserName"":""admin"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":179794426552389},{""Title"":""2"",""Content"":""<p>333</p>"",""Type"":2,""PublicUserId"":177325484421189,""PublicUserName"":""郑国静"",""PublicOrgId"":177325089079365,""PublicOrgName"":""系统机构"",""PublicTime"":""2021-07-12T11:25:56.11"",""CancelTime"":""1753-01-01T00:00:00"",""Status"":1,""CreatedTime"":""2021-07-12T11:25:56.11"",""UpdatedTime"":null,""CreatedUserId"":177325484421189,""CreatedUserName"":""admin"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":179794551148613},{""Title"":""4"",""Content"":""444<p></p>"",""Type"":2,""PublicUserId"":177325484421189,""PublicUserName"":""郑国静"",""PublicOrgId"":177325089079365,""PublicOrgName"":""系统机构"",""PublicTime"":""2021-07-12T11:40:29.21"",""CancelTime"":""1753-01-01T00:00:00"",""Status"":1,""CreatedTime"":""2021-07-12T11:40:29.213"",""UpdatedTime"":null,""CreatedUserId"":177325484421189,""CreatedUserName"":""admin"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":179798127382597},{""Title"":""6"",""Content"":""6666<p></p>"",""Type"":2,""PublicUserId"":177325484421189,""PublicUserName"":""郑国静"",""PublicOrgId"":177325089079365,""PublicOrgName"":""系统机构"",""PublicTime"":""2021-07-12T11:41:28.417"",""CancelTime"":""1753-01-01T00:00:00"",""Status"":1,""CreatedTime"":""2021-07-12T11:41:28.417"",""UpdatedTime"":null,""CreatedUserId"":177325484421189,""CreatedUserName"":""admin"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":179798369882181},{""Title"":""777"",""Content"":""玉婷<p></p>"",""Type"":1,""PublicUserId"":177325484421189,""PublicUserName"":""郑国静"",""PublicOrgId"":177325089079365,""PublicOrgName"":""系统机构"",""PublicTime"":""2021-07-12T11:45:14.92"",""CancelTime"":""1753-01-01T00:00:00"",""Status"":1,""CreatedTime"":""2021-07-12T11:45:14.92"",""UpdatedTime"":null,""CreatedUserId"":177325484421189,""CreatedUserName"":""admin"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":179799297638469},{""Title"":""Ang"",""Content"":""frgf<p></p>"",""Type"":1,""PublicUserId"":177325484421189,""PublicUserName"":""郑国静"",""PublicOrgId"":177325089079365,""PublicOrgName"":""系统机构"",""PublicTime"":""2021-07-12T11:47:15.83"",""CancelTime"":""1753-01-01T00:00:00"",""Status"":1,""CreatedTime"":""2021-07-12T11:47:15.83"",""UpdatedTime"":null,""CreatedUserId"":177325484421189,""CreatedUserName"":""admin"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":179799792885829},{""Title"":""fgfg"",""Content"":""fgfg<p></p>"",""Type"":1,""PublicUserId"":177325484421189,""PublicUserName"":""郑国静"",""PublicOrgId"":177325089079365,""PublicOrgName"":""系统机构"",""PublicTime"":""2021-07-12T11:47:58.19"",""CancelTime"":""1753-01-01T00:00:00"",""Status"":1,""CreatedTime"":""2021-07-12T11:47:58.19"",""UpdatedTime"":null,""CreatedUserId"":177325484421189,""CreatedUserName"":""admin"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":179799966392389},{""Title"":""878"",""Content"":""8888<p></p>"",""Type"":1,""PublicUserId"":177325484421189,""PublicUserName"":""郑国静"",""PublicOrgId"":177325089079365,""PublicOrgName"":""系统机构"",""PublicTime"":""2021-07-12T11:49:15.067"",""CancelTime"":""1753-01-01T00:00:00"",""Status"":1,""CreatedTime"":""2021-07-12T11:49:15.067"",""UpdatedTime"":null,""CreatedUserId"":177325484421189,""CreatedUserName"":""admin"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":179800281276485},{""Title"":""hgfhh"",""Content""
|
||
|
";
|
||
|
List<SysNotice> list = JsonUtil.ToObject<List<SysNotice>>(json);
|
||
|
|
||
|
return list;
|
||
|
}}
|