parent
fcd0eace22
commit
3a0254a65c
@ -0,0 +1,133 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>Magic.Application</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:Magic.Application.Entity.JobhuntMessage">
|
||||
<summary>
|
||||
求职信息
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Magic.Application.Entity.JobhuntMessage.TenantId">
|
||||
<summary>
|
||||
租户Id
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Magic.Application.Entity.JobhuntMessage.PositionInfo">
|
||||
<summary>
|
||||
求职详情
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Magic.Application.Entity.JobhuntMessage.Title">
|
||||
<summary>
|
||||
求职标题
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Magic.Application.Entity.JobhuntMessage.Status">
|
||||
<summary>
|
||||
求职状态
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Magic.Application.Entity.JobhuntMessage.Experience">
|
||||
<summary>
|
||||
经验
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Magic.Application.Entity.JobhuntMessage.Tag">
|
||||
<summary>
|
||||
标签
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Magic.Application.Entity.JobhuntMessage.ProvinceId">
|
||||
<summary>
|
||||
省份
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Magic.Application.Entity.JobhuntMessage.CityId">
|
||||
<summary>
|
||||
城市
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:Magic.Application.Entity.RecruitMessage">
|
||||
<summary>
|
||||
招聘消息
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Magic.Application.Entity.RecruitMessage.TenantId">
|
||||
<summary>
|
||||
租户Id
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Magic.Application.Entity.RecruitMessage.PositionInfo">
|
||||
<summary>
|
||||
职位详情
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Magic.Application.Entity.RecruitMessage.Title">
|
||||
<summary>
|
||||
标题
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Magic.Application.Entity.RecruitMessage.Status">
|
||||
<summary>
|
||||
状态
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Magic.Application.Entity.RecruitMessage.ProvinceId">
|
||||
<summary>
|
||||
省份
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Magic.Application.Entity.RecruitMessage.CityId">
|
||||
<summary>
|
||||
城市
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Magic.Application.Entity.RecruitMessage.AreaId">
|
||||
<summary>
|
||||
区
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Magic.Application.Entity.RecruitMessage.Address">
|
||||
<summary>
|
||||
详细地址
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Magic.Application.Entity.RecruitMessage.Phone">
|
||||
<summary>
|
||||
联系电话
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Magic.Application.Entity.RecruitMessage.Tag">
|
||||
<summary>
|
||||
标签
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Magic.Application.Entity.RecruitMessage.Education">
|
||||
<summary>
|
||||
学历
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Magic.Application.Entity.RecruitMessage.Experience">
|
||||
<summary>
|
||||
经验
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:Magic.Application.Entity.SysArea">
|
||||
<summary>
|
||||
系统地区数据
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Magic.Application.Entity.SysArea.parent_id">
|
||||
<summary>
|
||||
父级ID
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Magic.Application.Entity.SysArea.name">
|
||||
<summary>
|
||||
地区名
|
||||
</summary>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
@ -0,0 +1,14 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Magic.Web.Core\Magic.Web.Core.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
@ -0,0 +1,13 @@
|
||||
using Magic.Core;
|
||||
using Magic.Core.Entity;
|
||||
|
||||
namespace Magic.CodeFirst;
|
||||
|
||||
public class DocumentationSeedData : ISeedData , ISqlSugarEntitySeedData<Documentation>
|
||||
{ public IEnumerable<Documentation> HasData()
|
||||
{ string json = @"[{""PId"":0,""PIds"":null,""Name"":""新建文件夹"",""DocumentType"":1,""FileSuffix"":null,""FileSizeKb"":null,""FilePath"":null,""FileObjectName"":null,""Label"":3,""Remark"":null,""Visible"":true,""Children"":null,""CreatedTime"":""2022-04-27T11:15:12.403"",""UpdatedTime"":null,""CreatedUserId"":142307070910551,""CreatedUserName"":""superAdmin"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":282067396128837},{""PId"":282067396128837,""PIds"":null,""Name"":""logo.png"",""DocumentType"":2,""FileSuffix"":"".png"",""FileSizeKb"":25,""FilePath"":""Upload/Document/2022/4/27"",""FileObjectName"":""282067842687045.png"",""Label"":null,""Remark"":null,""Visible"":true,""Children"":null,""CreatedTime"":""2022-04-27T11:17:01.427"",""UpdatedTime"":""2022-04-27T11:20:46.45"",""CreatedUserId"":142307070910551,""CreatedUserName"":""superAdmin"",""UpdatedUserId"":142307070910551,""UpdatedUserName"":""superAdmin"",""IsDeleted"":false,""Id"":282067842687046},{""PId"":282067396128837,""PIds"":null,""Name"":""呃呃呃"",""DocumentType"":1,""FileSuffix"":null,""FileSizeKb"":null,""FilePath"":null,""FileObjectName"":null,""Label"":3,""Remark"":null,""Visible"":true,""Children"":null,""CreatedTime"":""2022-04-27T11:21:14.207"",""UpdatedTime"":null,""CreatedUserId"":142307070910551,""CreatedUserName"":""superAdmin"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":282068878082117}]
|
||||
";
|
||||
List<Documentation> list = JsonUtil.ToObject<List<Documentation>>(json);
|
||||
|
||||
return list;
|
||||
}}
|
@ -0,0 +1,13 @@
|
||||
using Magic.Core;
|
||||
using Magic.Core.Entity;
|
||||
|
||||
namespace Magic.CodeFirst;
|
||||
|
||||
public class SysAppSeedData : ISeedData , ISqlSugarEntitySeedData<SysApp>
|
||||
{ public IEnumerable<SysApp> HasData()
|
||||
{ string json = @"[{""Name"":""平台管理"",""Code"":""system"",""Active"":""Y"",""Status"":0,""Sort"":100,""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070898245},{""Name"":""系统管理"",""Code"":""manage"",""Active"":""N"",""Status"":0,""Sort"":300,""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902341},{""Name"":""运营管理"",""Code"":""platform"",""Active"":""N"",""Status"":0,""Sort"":200,""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070922826},{""Name"":""业务应用"",""Code"":""busiapp"",""Active"":""N"",""Status"":0,""Sort"":400,""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070922869},{""Name"":""流程中心"",""Code"":""flowcenter"",""Active"":""N"",""Status"":0,""Sort"":500,""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":246681684324421}]
|
||||
";
|
||||
List<SysApp> list = JsonUtil.ToObject<List<SysApp>>(json);
|
||||
|
||||
return list;
|
||||
}}
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,13 @@
|
||||
using Magic.Core;
|
||||
using Magic.Core.Entity;
|
||||
|
||||
namespace Magic.CodeFirst;
|
||||
|
||||
public class SysCodeGenSeedData : ISeedData , ISqlSugarEntitySeedData<SysCodeGen>
|
||||
{ public IEnumerable<SysCodeGen> HasData()
|
||||
{ string json = @"[{""AuthorName"":""Magic"",""TablePrefix"":null,""GenerateType"":""2"",""TableName"":""Test"",""NameSpace"":""Magic.Application"",""BusName"":""测试"",""MenuApplication"":""busiapp"",""MenuPid"":0,""CreatedTime"":""2022-05-25T09:15:02.367"",""UpdatedTime"":null,""CreatedUserId"":142307070910551,""CreatedUserName"":""超级管理员"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":291946907033669}]
|
||||
";
|
||||
List<SysCodeGen> list = JsonUtil.ToObject<List<SysCodeGen>>(json);
|
||||
|
||||
return list;
|
||||
}}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,13 @@
|
||||
using Magic.Core;
|
||||
using Magic.Core.Entity;
|
||||
|
||||
namespace Magic.CodeFirst;
|
||||
|
||||
public class SysEmpPosSeedData : ISeedData , ISqlSugarEntitySeedData<SysEmpPos>
|
||||
{ public IEnumerable<SysEmpPos> HasData()
|
||||
{ string json = @"[{""SysEmpId"":177325484421189,""SysPosId"":177325394366533},{""SysEmpId"":182314279026757,""SysPosId"":177325394366533}]
|
||||
";
|
||||
List<SysEmpPos> list = JsonUtil.ToObject<List<SysEmpPos>>(json);
|
||||
|
||||
return list;
|
||||
}}
|
@ -0,0 +1,13 @@
|
||||
using Magic.Core;
|
||||
using Magic.Core.Entity;
|
||||
|
||||
namespace Magic.CodeFirst;
|
||||
|
||||
public class SysEmpSeedData : ISeedData , ISqlSugarEntitySeedData<SysEmp>
|
||||
{ public IEnumerable<SysEmp> HasData()
|
||||
{ string json = @"[{""JobNum"":null,""OrgId"":177325089079365,""OrgName"":""系统机构"",""Id"":142307070910551},{""JobNum"":""1"",""OrgId"":175624015089733,""OrgName"":""土豆新车"",""Id"":175624015269957},{""JobNum"":null,""OrgId"":177325089079365,""OrgName"":""系统机构"",""Id"":177325484421189},{""JobNum"":null,""OrgId"":182313953165381,""OrgName"":""机构1"",""Id"":182314279026757},{""JobNum"":""1"",""OrgId"":278024843092037,""OrgName"":""租户1"",""Id"":278024843153477}]
|
||||
";
|
||||
List<SysEmp> list = JsonUtil.ToObject<List<SysEmp>>(json);
|
||||
|
||||
return list;
|
||||
}}
|
@ -0,0 +1,13 @@
|
||||
using Magic.Core;
|
||||
using Magic.Core.Entity;
|
||||
|
||||
namespace Magic.CodeFirst;
|
||||
|
||||
public class SysFileSeedData : ISeedData , ISqlSugarEntitySeedData<SysFile>
|
||||
{ public IEnumerable<SysFile> HasData()
|
||||
{ string json = @"[{""FileLocation"":4,""FileBucket"":""LOCAL"",""FileOriginName"":""icon_avatar.png"",""FileSuffix"":""png"",""FileSizeKb"":""4"",""FileSizeInfo"":null,""FileObjectName"":""178111296725062.png"",""FilePath"":""Upload/Default"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":178111296725061},{""FileLocation"":4,""FileBucket"":""LOCAL"",""FileOriginName"":""icon_alipay.png"",""FileSuffix"":""png"",""FileSizeKb"":""22"",""FileSizeInfo"":null,""FileObjectName"":""188632919339077.png"",""FilePath"":""Upload/Avatar"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":188632919339077}]
|
||||
";
|
||||
List<SysFile> list = JsonUtil.ToObject<List<SysFile>>(json);
|
||||
|
||||
return list;
|
||||
}}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,13 @@
|
||||
using Magic.Core;
|
||||
using Magic.Core.Entity;
|
||||
|
||||
namespace Magic.CodeFirst;
|
||||
|
||||
public class SysNoticeUserSeedData : ISeedData , ISqlSugarEntitySeedData<SysNoticeUser>
|
||||
{ public IEnumerable<SysNoticeUser> HasData()
|
||||
{ string json = @"[{""NoticeId"":179794426552389,""UserId"":177325484421189,""ReadTime"":""2021-07-12T11:40:09.753"",""ReadStatus"":1},{""NoticeId"":179794551148613,""UserId"":177325484421189,""ReadTime"":""2021-07-12T11:40:13.633"",""ReadStatus"":1},{""NoticeId"":179798127382597,""UserId"":177325484421189,""ReadTime"":""1753-01-01T00:00:00"",""ReadStatus"":0},{""NoticeId"":179798369882181,""UserId"":177325484421189,""ReadTime"":""1753-01-01T00:00:00"",""ReadStatus"":0},{""NoticeId"":179799297638469,""UserId"":177325484421189,""ReadTime"":""1753-01-01T00:00:00"",""ReadStatus"":0},{""NoticeId"":179799792885829,""UserId"":177325484421189,""ReadTime"":""1753-01-01T00:00:00"",""ReadStatus"":0},{""NoticeId"":179799966392389,""UserId"":177325484421189,""ReadTime"":""1753-01-01T00:00:00"",""ReadStatus"":0},{""NoticeId"":179800281276485,""UserId"":177325484421189,""ReadTime"":""1753-01-01T00:00:00"",""ReadStatus"":0},{""NoticeId"":179803119427653,""UserId"":177325484421189,""ReadTime"":""1753-01-01T00:00:00"",""ReadStatus"":0},{""NoticeId"":179803196371013,""UserId"":177325484421189,""ReadTime"":""1753-01-01T00:00:00"",""ReadStatus"":0},{""NoticeId"":179803415650373,""UserId"":177325484421189,""ReadTime"":""1753-01-01T00:00:00"",""ReadStatus"":0},{""NoticeId"":179826348257349,""UserId"":177325484421189,""ReadTime"":""1753-01-01T00:00:00"",""ReadStatus"":0},{""NoticeId"":179801393012805,""UserId"":177325484421189,""ReadTime"":""1753-01-01T00:00:00"",""ReadStatus"":0},{""NoticeId"":179801499226181,""UserId"":177325484421189,""ReadTime"":""1753-01-01T00:00:00"",""ReadStatus"":0},{""NoticeId"":179801551765573,""UserId"":177325484421189,""ReadTime"":""1753-01-01T00:00:00"",""ReadStatus"":0},{""NoticeId"":193416668713029,""UserId"":177325484421189,""ReadTime"":""1753-01-01T00:00:00"",""ReadStatus"":0}]
|
||||
";
|
||||
List<SysNoticeUser> list = JsonUtil.ToObject<List<SysNoticeUser>>(json);
|
||||
|
||||
return list;
|
||||
}}
|
@ -0,0 +1,13 @@
|
||||
using Magic.Core;
|
||||
using Magic.Core.Entity;
|
||||
|
||||
namespace Magic.CodeFirst;
|
||||
|
||||
public class SysOrgSeedData : ISeedData , ISqlSugarEntitySeedData<SysOrg>
|
||||
{ public IEnumerable<SysOrg> HasData()
|
||||
{ string json = @"[{""Pid"":0,""Pids"":""[0],"",""Name"":""土豆新车"",""Code"":""1"",""Contacts"":""tdadmin"",""Tel"":null,""Sort"":0,""Remark"":null,""Status"":0,""TenantId"":175624014975045,""CreatedTime"":""2021-06-30T16:35:58.83"",""UpdatedTime"":null,""CreatedUserId"":142307070910551,""CreatedUserName"":""superAdmin"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":175624015089733},{""Pid"":0,""Pids"":""[0],"",""Name"":""系统机构"",""Code"":""SystemOrg"",""Contacts"":null,""Tel"":null,""Sort"":1,""Remark"":null,""Status"":0,""TenantId"":142307070918780,""CreatedTime"":""2021-07-05T11:57:40.097"",""UpdatedTime"":null,""CreatedUserId"":142307070910551,""CreatedUserName"":""superAdmin"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":177325089079365},{""Pid"":177325089079365,""Pids"":""[0],[177325089079365],"",""Name"":""机构1"",""Code"":""1"",""Contacts"":null,""Tel"":null,""Sort"":100,""Remark"":null,""Status"":0,""TenantId"":142307070918780,""CreatedTime"":""2021-07-19T14:17:24.493"",""UpdatedTime"":null,""CreatedUserId"":142307070910551,""CreatedUserName"":""superAdmin"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":182313953165381},{""Pid"":182313953165381,""Pids"":""[0],[177325089079365],[182313953165381],"",""Name"":""机构2"",""Code"":""2"",""Contacts"":null,""Tel"":null,""Sort"":100,""Remark"":null,""Status"":0,""TenantId"":142307070918780,""CreatedTime"":""2021-07-19T14:17:38.037"",""UpdatedTime"":null,""CreatedUserId"":142307070910551,""CreatedUserName"":""superAdmin"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":182314008641605},{""Pid"":0,""Pids"":""[0],"",""Name"":""租户1"",""Code"":""1"",""Contacts"":""租户1管理员"",""Tel"":null,""Sort"":0,""Remark"":null,""Status"":0,""TenantId"":278024843046981,""CreatedTime"":""2022-04-16T01:06:00.98"",""UpdatedTime"":null,""CreatedUserId"":142307070910551,""CreatedUserName"":""superAdmin"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":278024843092037}]
|
||||
";
|
||||
List<SysOrg> list = JsonUtil.ToObject<List<SysOrg>>(json);
|
||||
|
||||
return list;
|
||||
}}
|
@ -0,0 +1,13 @@
|
||||
using Magic.Core;
|
||||
using Magic.Core.Entity;
|
||||
|
||||
namespace Magic.CodeFirst;
|
||||
|
||||
public class SysPosSeedData : ISeedData , ISqlSugarEntitySeedData<SysPos>
|
||||
{ public IEnumerable<SysPos> HasData()
|
||||
{ string json = @"[{""Name"":""系统职位"",""Code"":""SystemPos"",""Sort"":1,""Remark"":null,""Status"":0,""TenantId"":142307070918780,""CreatedTime"":""2021-07-05T11:58:54.63"",""UpdatedTime"":null,""CreatedUserId"":142307070910551,""CreatedUserName"":""superAdmin"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":177325394366533}]
|
||||
";
|
||||
List<SysPos> list = JsonUtil.ToObject<List<SysPos>>(json);
|
||||
|
||||
return list;
|
||||
}}
|
@ -0,0 +1,13 @@
|
||||
using Magic.Core;
|
||||
using Magic.Core.Entity;
|
||||
|
||||
namespace Magic.CodeFirst;
|
||||
|
||||
public class SysRoleDataScopeSeedData : ISeedData , ISqlSugarEntitySeedData<SysRoleDataScope>
|
||||
{ public IEnumerable<SysRoleDataScope> HasData()
|
||||
{ string json = @"[{""SysRoleId"":278024843124805,""SysOrgId"":278024843092037}]
|
||||
";
|
||||
List<SysRoleDataScope> list = JsonUtil.ToObject<List<SysRoleDataScope>>(json);
|
||||
|
||||
return list;
|
||||
}}
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,13 @@
|
||||
using Magic.Core;
|
||||
using Magic.Core.Entity;
|
||||
|
||||
namespace Magic.CodeFirst;
|
||||
|
||||
public class SysRoleSeedData : ISeedData , ISqlSugarEntitySeedData<SysRole>
|
||||
{ public IEnumerable<SysRole> HasData()
|
||||
{ string json = @"[{""Name"":""系统管理员"",""Code"":""1"",""Sort"":0,""DataScopeType"":1,""Remark"":null,""Status"":0,""RoleType"":1,""TenantId"":175624014975045,""CreatedTime"":""2021-06-30T16:35:58.853"",""UpdatedTime"":null,""CreatedUserId"":142307070910551,""CreatedUserName"":""superAdmin"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":175624015192133},{""Name"":""财务"",""Code"":""cw"",""Sort"":100,""DataScopeType"":1,""Remark"":null,""Status"":0,""RoleType"":0,""TenantId"":175624014975045,""CreatedTime"":""2021-06-30T17:06:59.447"",""UpdatedTime"":null,""CreatedUserId"":175624015269957,""CreatedUserName"":""toudou@qq.com"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":175631636172869},{""Name"":""普通用户"",""Code"":""pt"",""Sort"":100,""DataScopeType"":1,""Remark"":null,""Status"":0,""RoleType"":0,""TenantId"":142307070918780,""CreatedTime"":""2021-06-30T17:13:32.56"",""UpdatedTime"":null,""CreatedUserId"":142307070910551,""CreatedUserName"":""superAdmin"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":175633246363717},{""Name"":""系统管理员"",""Code"":""1"",""Sort"":0,""DataScopeType"":1,""Remark"":null,""Status"":0,""RoleType"":1,""TenantId"":278024843046981,""CreatedTime"":""2022-04-16T01:06:00.987"",""UpdatedTime"":null,""CreatedUserId"":142307070910551,""CreatedUserName"":""superAdmin"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":278024843124805}]
|
||||
";
|
||||
List<SysRole> list = JsonUtil.ToObject<List<SysRole>>(json);
|
||||
|
||||
return list;
|
||||
}}
|
@ -0,0 +1,13 @@
|
||||
using Magic.Core;
|
||||
using Magic.Core.Entity;
|
||||
|
||||
namespace Magic.CodeFirst;
|
||||
|
||||
public class SysTenantSeedData : ISeedData , ISqlSugarEntitySeedData<SysTenant>
|
||||
{ public IEnumerable<SysTenant> HasData()
|
||||
{ string json = @"[{""Name"":""系统租户"",""AdminName"":""SystemAdmin"",""Host"":null,""Email"":""SystemAdmin"",""Phone"":null,""Connection"":null,""Schema"":null,""Remark"":null,""TenantType"":1,""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070918780},{""Name"":""土豆新车"",""AdminName"":""tdadmin"",""Host"":null,""Email"":""toudou@qq.com"",""Phone"":null,""Connection"":null,""Schema"":null,""Remark"":null,""TenantType"":0,""CreatedTime"":""2021-06-30T16:35:58.803"",""UpdatedTime"":null,""CreatedUserId"":142307070910551,""CreatedUserName"":""superAdmin"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":175624014975045},{""Name"":""租户1"",""AdminName"":""租户1管理员"",""Host"":null,""Email"":""zuhutest"",""Phone"":null,""Connection"":null,""Schema"":null,""Remark"":null,""TenantType"":0,""CreatedTime"":""2022-04-16T01:06:00.967"",""UpdatedTime"":null,""CreatedUserId"":142307070910551,""CreatedUserName"":""superAdmin"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":278024843046981}]
|
||||
";
|
||||
List<SysTenant> list = JsonUtil.ToObject<List<SysTenant>>(json);
|
||||
|
||||
return list;
|
||||
}}
|
@ -0,0 +1,13 @@
|
||||
using Magic.Core;
|
||||
using Magic.Core.Entity;
|
||||
|
||||
namespace Magic.CodeFirst;
|
||||
|
||||
public class SysTestSeedData : ISeedData , ISqlSugarEntitySeedData<Test>
|
||||
{ public IEnumerable<Test> 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}]
|
||||
";
|
||||
List<Test> list = JsonUtil.ToObject<List<Test>>(json);
|
||||
|
||||
return list;
|
||||
}}
|
@ -0,0 +1,13 @@
|
||||
using Magic.Core;
|
||||
using Magic.Core.Entity;
|
||||
|
||||
namespace Magic.CodeFirst;
|
||||
|
||||
public class SysTimerSeedData : ISeedData , ISqlSugarEntitySeedData<SysTimer>
|
||||
{ public IEnumerable<SysTimer> HasData()
|
||||
{ string json = @"[{""JobName"":""百度api"",""DoOnce"":false,""StartNow"":false,""ExecuteType"":1,""Interval"":5,""Cron"":null,""TimerType"":0,""RequestUrl"":""https://www.baidu.com"",""RequestParameters"":null,""Headers"":null,""RequestType"":2,""Remark"":""接口API"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070910556},{""JobName"":""异常日志"",""DoOnce"":false,""StartNow"":false,""ExecuteType"":1,""Interval"":1,""Cron"":null,""TimerType"":0,""RequestUrl"":""LogJobWorker/DoLogEx"",""RequestParameters"":null,""Headers"":null,""RequestType"":0,""Remark"":"""",""CreatedTime"":null,""UpdatedTime"":""2021-07-22T17:49:29.37"",""CreatedUserId"":142307070910551,""CreatedUserName"":""superAdmin"",""UpdatedUserId"":142307070910551,""UpdatedUserName"":""superAdmin"",""IsDeleted"":false,""Id"":142307070910557},{""JobName"":""操作日志"",""DoOnce"":false,""StartNow"":false,""ExecuteType"":1,""Interval"":1,""Cron"":null,""TimerType"":0,""RequestUrl"":""LogJobWorker/DoLogOp"",""RequestParameters"":null,""Headers"":null,""RequestType"":0,""Remark"":"""",""CreatedTime"":null,""UpdatedTime"":""2021-07-22T17:49:31.363"",""CreatedUserId"":142307070910551,""CreatedUserName"":""superAdmin"",""UpdatedUserId"":142307070910551,""UpdatedUserName"":""superAdmin"",""IsDeleted"":false,""Id"":142307070910558},{""JobName"":""访问日志"",""DoOnce"":false,""StartNow"":false,""ExecuteType"":1,""Interval"":1,""Cron"":null,""TimerType"":0,""RequestUrl"":""LogJobWorker/DoLogVis"",""RequestParameters"":null,""Headers"":null,""RequestType"":0,""Remark"":"""",""CreatedTime"":null,""UpdatedTime"":""2021-07-22T17:49:33.267"",""CreatedUserId"":142307070910551,""CreatedUserName"":""superAdmin"",""UpdatedUserId"":142307070910551,""UpdatedUserName"":""superAdmin"",""IsDeleted"":false,""Id"":142307070910559}]
|
||||
";
|
||||
List<SysTimer> list = JsonUtil.ToObject<List<SysTimer>>(json);
|
||||
|
||||
return list;
|
||||
}}
|
@ -0,0 +1,13 @@
|
||||
using Magic.Core;
|
||||
using Magic.Core.Entity;
|
||||
|
||||
namespace Magic.CodeFirst;
|
||||
|
||||
public class SysUserDataScopeSeedData : ISeedData , ISqlSugarEntitySeedData<SysUserDataScope>
|
||||
{ public IEnumerable<SysUserDataScope> HasData()
|
||||
{ string json = @"[{""SysUserId"":175624015269957,""SysOrgId"":175624015089733},{""SysUserId"":278024843153477,""SysOrgId"":278024843092037}]
|
||||
";
|
||||
List<SysUserDataScope> list = JsonUtil.ToObject<List<SysUserDataScope>>(json);
|
||||
|
||||
return list;
|
||||
}}
|
@ -0,0 +1,13 @@
|
||||
using Magic.Core;
|
||||
using Magic.Core.Entity;
|
||||
|
||||
namespace Magic.CodeFirst;
|
||||
|
||||
public class SysUserRoleSeedData : ISeedData , ISqlSugarEntitySeedData<SysUserRole>
|
||||
{ public IEnumerable<SysUserRole> HasData()
|
||||
{ string json = @"[{""SysUserId"":175624015269957,""SysRoleId"":175624015192133},{""SysUserId"":177325484421189,""SysRoleId"":175633246363717},{""SysUserId"":182314279026757,""SysRoleId"":175633246363717},{""SysUserId"":278024843153477,""SysRoleId"":278024843124805}]
|
||||
";
|
||||
List<SysUserRole> list = JsonUtil.ToObject<List<SysUserRole>>(json);
|
||||
|
||||
return list;
|
||||
}}
|
@ -0,0 +1,13 @@
|
||||
using Magic.Core;
|
||||
using Magic.Core.Entity;
|
||||
|
||||
namespace Magic.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}]
|
||||
";
|
||||
List<SysUser> list = JsonUtil.ToObject<List<SysUser>>(json);
|
||||
|
||||
return list;
|
||||
}}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue