@ -4,10 +4,24 @@ using GDZZ.Core.Entity;
namespace GDZZ.CodeFirst ;
public class SysUserSeedData : ISeedData , ISqlSugarEntitySeedData < SysUser >
{ public IEnumerable < SysUser > HasData ( )
{ string json = @"[{""Account"":""superAdmin"",""Password"":""e10adc3949ba59abbe56e057f20f883e"",""NickName"":""superAdmin"",""Name"":""超级管理员"",""Avatar"":""188632919339077"",""Birthday"":""1753-01-01T00:00:00"",""Sex"":1,""Email"":null,""Phone"":""18020030720"",""Tel"":null,""LastLoginIp"":""127.0.0.1"",""LastLoginTime"":""2022-05-25T09:12:40.45"",""AdminType"":1,""Status"":0,""TenantId"":142307070918780,""CreatedTime"":null,""UpdatedTime"":""2021-08-06T10:49:21.047"",""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":142307070910551,""UpdatedUserName"":""superAdmin"",""IsDeleted"":false,""Id"":142307070910551},{""Account"":""toudou@qq.com"",""Password"":""e10adc3949ba59abbe56e057f20f883e"",""NickName"":""tdadmin"",""Name"":""tdadmin"",""Avatar"":null,""Birthday"":""1753-01-01T00:00:00"",""Sex"":0,""Email"":""toudou@qq.com"",""Phone"":null,""Tel"":null,""LastLoginIp"":""127.0.0.1"",""LastLoginTime"":""2022-04-16T00:42:43.103"",""AdminType"":2,""Status"":0,""TenantId"":175624014975045,""CreatedTime"":""2021-06-30T16:35:58.873"",""UpdatedTime"":null,""CreatedUserId"":142307070910551,""CreatedUserName"":""superAdmin"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":175624015269957},{""Account"":""admin"",""Password"":""e10adc3949ba59abbe56e057f20f883e"",""NickName"":""admin"",""Name"":""管理员"",""Avatar"":null,""Birthday"":""1753-01-01T00:00:00"",""Sex"":1,""Email"":null,""Phone"":""15959110752"",""Tel"":null,""LastLoginIp"":""0.0.0.1"",""LastLoginTime"":""2021-08-19T23:55:06.2"",""AdminType"":0,""Status"":0,""TenantId"":142307070918780,""CreatedTime"":""2021-07-05T11:59:16.617"",""UpdatedTime"":""2021-08-19T23:10:52.907"",""CreatedUserId"":142307070910551,""CreatedUserName"":""superAdmin"",""UpdatedUserId"":142307070910551,""UpdatedUserName"":""superAdmin"",""IsDeleted"":false,""Id"":177325484421189},{""Account"":""zhangsan"",""Password"":""e10adc3949ba59abbe56e057f20f883e"",""NickName"":""张三"",""Name"":""张三"",""Avatar"":null,""Birthday"":""1753-01-01T00:00:00"",""Sex"":1,""Email"":null,""Phone"":""15959110751"",""Tel"":null,""LastLoginIp"":""127.0.0.1"",""LastLoginTime"":""2021-07-19T15:13:27.183"",""AdminType"":0,""Status"":0,""TenantId"":142307070918780,""CreatedTime"":""2021-07-19T14:18:44.05"",""UpdatedTime"":null,""CreatedUserId"":142307070910551,""CreatedUserName"":""superAdmin"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":182314279026757},{""Account"":""zuhutest"",""Password"":""e10adc3949ba59abbe56e057f20f883e"",""NickName"":""租户1管理员"",""Name"":""租户1管理员"",""Avatar"":null,""Birthday"":""1753-01-01T00:00:00"",""Sex"":0,""Email"":""zuhutest"",""Phone"":null,""Tel"":null,""LastLoginIp"":""127.0.0.1"",""LastLoginTime"":""2022-04-16T01:06:31.343"",""AdminType"":2,""Status"":0,""TenantId"":278024843046981,""CreatedTime"":""2022-04-16T01:06:00.993"",""UpdatedTime"":null,""CreatedUserId"":142307070910551,""CreatedUserName"":""superAdmin"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id" ":278024843153477}]
{
public IEnumerable < SysUser > HasData ( )
{
string json = @ "[
{ "" Account "" : "" superAdmin "" , "" Password "" : "" e10adc3949ba59abbe56e057f20f883e "" ,
"" NickName "" : "" superAdmin "" , "" Name "" : "" 超 级 管 理 员 "" , "" Avatar "" : "" 188632919339077 "" , "" Birthday "" : "" 1753 - 01 - 01 T00 : 00 : 00 "" ,
"" Sex "" : 1 , "" Email "" : "" zongzhi @zz . com "" , "" Phone "" : "" 18020030720 "" , "" Tel "" : null , "" LastLoginIp "" : "" 127.0 . 0.1 "" , "" LastLoginTime "" : "" 2022 - 05 - 25 T09 : 12 : 40.45 "" ,
"" AdminType "" : 1 , "" Status "" : 0 , "" TenantId "" : 142307070918780 , "" CreatedTime "" : null , "" UpdatedTime "" : "" 2021 - 08 - 06 T10 : 49 : 21.047 ""
, "" CreatedUserId "" : null , "" CreatedUserName "" : null , "" UpdatedUserId "" : 142307070910551 , "" UpdatedUserName "" : "" superAdmin "" ,
"" IsDeleted "" : false , "" Id "" : 142307070910551 } , { "" Account "" : "" toudou @qq . com "" , "" Password "" : "" e10adc3949ba59abbe56e057f20f883e "" ,
"" NickName "" : "" tdadmin "" , "" Name "" : "" tdadmin "" , "" Avatar "" : null , "" Birthday "" : "" 1753 - 01 - 01 T00 : 00 : 00 "" , "" Sex "" : 0 , "" Email "" : "" toudou @qq . com "" ,
"" Phone "" : null , "" Tel "" : null , "" LastLoginIp "" : "" 127.0 . 0.1 "" , "" LastLoginTime "" : "" 2022 - 04 - 16 T00 : 42 : 43.103 "" , "" AdminType "" : 2 , "" Status "" : 0 ,
"" TenantId "" : 175624014975045 , "" CreatedTime "" : "" 2021 - 06 - 30 T16 : 35 : 58.873 "" , "" UpdatedTime "" : null , "" CreatedUserId "" : 142307070910551 ,
"" CreatedUserName "" : "" superAdmin "" , "" UpdatedUserId "" : null , "" UpdatedUserName "" : null , "" IsDeleted "" : false , "" Id "" : 175624015269957 } ,
{ "" Account "" : "" admin "" , "" Password "" : "" e10adc3949ba59abbe56e057f20f883e "" , "" NickName "" : "" admin "" , "" Name "" : "" 管 理 员 "" , "" Avatar "" : null , "" Birthday "" : "" 1753 - 01 - 01 T00 : 00 : 00 "" , "" Sex "" : 1 , "" Email "" : null , "" Phone "" : "" 15959110752 "" , "" Tel "" : null , "" LastLoginIp "" : "" 0.0 . 0.1 "" , "" LastLoginTime "" : "" 2021 - 08 - 19 T23 : 55 : 06.2 "" , "" AdminType "" : 0 , "" Status "" : 0 , "" TenantId "" : 142307070918780 , "" CreatedTime "" : "" 2021 - 07 - 05 T11 : 59 : 16.617 "" , "" UpdatedTime "" : "" 2021 - 08 - 19 T23 : 10 : 52.907 "" , "" CreatedUserId "" : 142307070910551 , "" CreatedUserName "" : "" superAdmin "" , "" UpdatedUserId "" : 142307070910551 , "" UpdatedUserName "" : "" superAdmin "" , "" IsDeleted "" : false , "" Id "" : 177325484421189 } , { "" Account "" : "" zhangsan "" , "" Password "" : "" e10adc3949ba59abbe56e057f20f883e "" , "" NickName "" : "" 张 三 "" , "" Name "" : "" 张 三 "" , "" Avatar "" : null , "" Birthday "" : "" 1753 - 01 - 01 T00 : 00 : 00 "" , "" Sex "" : 1 , "" Email "" : null , "" Phone "" : "" 15959110751 "" , "" Tel "" : null , "" LastLoginIp "" : "" 127.0 . 0.1 "" , "" LastLoginTime "" : "" 2021 - 07 - 19 T15 : 13 : 27.183 "" , "" AdminType "" : 0 , "" Status "" : 0 , "" TenantId "" : 142307070918780 , "" CreatedTime "" : "" 2021 - 07 - 19 T14 : 18 : 44.05 "" , "" UpdatedTime "" : null , "" CreatedUserId "" : 142307070910551 , "" CreatedUserName "" : "" superAdmin "" , "" UpdatedUserId "" : null , "" UpdatedUserName "" : null , "" IsDeleted "" : false , "" Id "" : 182314279026757 } , { "" Account "" : "" zuhutest "" , "" Password "" : "" e10adc3949ba59abbe56e057f20f883e "" , "" NickName "" : "" 租 户 1 管 理 员 "" , "" Name "" : "" 租 户 1 管 理 员 "" , "" Avatar "" : null , "" Birthday "" : "" 1753 - 01 - 01 T00 : 00 : 00 "" , "" Sex "" : 0 , "" Email "" : "" zuhutest "" , "" Phone "" : null , "" Tel "" : null , "" LastLoginIp "" : "" 127.0 . 0.1 "" , "" LastLoginTime "" : "" 2022 - 04 - 16 T01 : 06 : 31.343 "" , "" AdminType "" : 2 , "" Status "" : 0 , "" TenantId "" : 278024843046981 , "" CreatedTime "" : "" 2022 - 04 - 16 T01 : 06 : 00.993 "" , "" UpdatedTime "" : null , "" CreatedUserId "" : 142307070910551 , "" CreatedUserName "" : "" superAdmin "" , "" UpdatedUserId "" : null , "" UpdatedUserName "" : null , "" IsDeleted "" : false , "" Id "" : 278024843153477 } ]
";
List < SysUser > list = JsonUtil . ToObject < List < SysUser > > ( json ) ;
return list ;
} }
}
}