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

using GDZZ.Core;
using GDZZ.Core.Entity;
namespace GDZZ.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"":""gfhgf<p></p>"",""Type"":1,""PublicUserId"":177325484421189,""PublicUserName"":""郑国静"",""PublicOrgId"":177325089079365,""PublicOrgName"":""系统机构"",""PublicTime"":""2021-07-12T11:53:49.537"",""CancelTime"":""1753-01-01T00:00:00"",""Status"":1,""CreatedTime"":""2021-07-12T11:53:46.487"",""UpdatedTime"":null,""CreatedUserId"":177325484421189,""CreatedUserName"":""admin"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":179801393012805},{""Title"":""jlkjllj"",""Content"":""<p>hjkhjkjh</p>"",""Type"":2,""PublicUserId"":177325484421189,""PublicUserName"":""郑国静"",""PublicOrgId"":177325089079365,""PublicOrgName"":""系统机构"",""PublicTime"":""2021-07-12T11:54:12.417"",""CancelTime"":""1753-01-01T00:00:00"",""Status"":1,""CreatedTime"":""2021-07-12T11:54:12.417"",""UpdatedTime"":null,""CreatedUserId"":177325484421189,""CreatedUserName"":""admin"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":179801499226181},{""Title"":""jhkhkhj"",""Content"":""<p>hkhjkh</p>"",""Type"":1,""PublicUserId"":177325484421189,""PublicUserName"":""郑国静"",""PublicOrgId"":177325089079365,""PublicOrgName"":""系统机构"",""PublicTime"":""2021-07-12T11:54:25.243"",""CancelTime"":""1753-01-01T00:00:00"",""Status"":1,""CreatedTime"":""2021-07-12T11:54:25.243"",""UpdatedTime"":null,""CreatedUserId"":177325484421189,""CreatedUserName"":""admin"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":179801551765573},{""Title"":""FGHGF"",""Content"":""GFHGF<p></p>"",""Type"":2,""PublicUserId"":177325484421189,""PublicUserName"":""郑国静"",""PublicOrgId"":177325089079365,""PublicOrgName"":""系统机构"",""PublicTime"":""2021-07-12T12:00:47.973"",""CancelTime"":""1753-01-01T00:00:00"",""Status"":1,""CreatedTime"":""2021-07-12T12:00:47.973"",""UpdatedTime"":null,""CreatedUserId"":177325484421189,""CreatedUserName"":""admin"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":179803119427653},{""Title"":""HAHAH"",""Content"":""<p>FDGFDGFD</p>"",""Type"":2,""PublicUserId"":177325484421189,""PublicUserName"":""郑国静"",""PublicOrgId"":177325089079365,""PublicOrgName"":""系统机构"",""PublicTime"":""2021-07-12T12:01:06.76"",""CancelTime"":""1753-01-01T00:00:00"",""Status"":1,""CreatedTime"":""2021-07-12T12:01:06.76"",""UpdatedTime"":null,""CreatedUserId"":177325484421189,""CreatedUserName"":""admin"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":179803196371013},{""Title"":""HAHAHA"",""Content"":""GFHGF<p></p>"",""Type"":1,""PublicUserId"":177325484421189,""PublicUserName"":""郑国静"",""PublicOrgId"":177325089079365,""PublicOrgName"":""系统机构"",""PublicTime"":""2021-07-12T12:02:00.293"",""CancelTime"":""1753-01-01T00:00:00"",""Status"":1,""CreatedTime"":""2021-07-12T12:02:00.293"",""UpdatedTime"":null,""CreatedUserId"":177325484421189,""CreatedUserName"":""admin"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":179803415650373},{""Title"":""呵呵呵"",""Content"":""第三方大幅度<p></p>"",""Type"":1,""PublicUserId"":177325484421189,""PublicUserName"":""郑国静"",""PublicOrgId"":177325089079365,""PublicOrgName"":""系统机构"",""PublicTime"":""2021-07-12T13:35:19.073"",""CancelTime"":""1753-01-01T00:00:00"",""Status"":1,""CreatedTime"":""2021-07-12T13:35:19.077"",""UpdatedTime"":null,""CreatedUserId"":177325484421189,""CreatedUserName"":""admin"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":179826348257349},{""Title"":""风格和规范"",""Content"":""风格化规范化<p></p>"",""Type"":1,""PublicUserId"":142307070910551,""PublicUserName"":""超级管理员"",""PublicOrgId"":177325089079365,""PublicOrgName"":""系统机构"",""PublicTime"":""2021-08-19T23:14:28.403"",""CancelTime"":""1753-01-01T00:00:00"",""Status"":1,""CreatedTime"":""2021-08-19T23:14:28.407"",""UpdatedTime"":null,""CreatedUserId"":142307070910551,""CreatedUserName"":""superAdmin"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":193416668713029}]
";
List<SysNotice> list = JsonUtil.ToObject<List<SysNotice>>(json);
return list;
}}