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
1.6 KiB
14 lines
1.6 KiB
2 years ago
|
using GDZZ.Core;
|
||
|
using GDZZ.Core.Entity;
|
||
2 years ago
|
|
||
2 years ago
|
namespace GDZZ.CodeFirst;
|
||
2 years ago
|
|
||
|
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;
|
||
|
}}
|