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.0 KiB
14 lines
8.0 KiB
2 years ago
|
using Magic.Core;
|
||
|
using Magic.Core.Entity;
|
||
|
|
||
|
namespace Magic.CodeFirst;
|
||
|
|
||
|
public class SysDictTypeSeedData : ISeedData , ISqlSugarEntitySeedData<SysDictType>
|
||
|
{ public IEnumerable<SysDictType> HasData()
|
||
|
{ string json = @"[{""Name"":""通用状态"",""Code"":""common_status"",""Sort"":100,""Remark"":""通用状态"",""Status"":0,""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070906483},{""Name"":""性别"",""Code"":""sex"",""Sort"":100,""Remark"":""性别字典"",""Status"":0,""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070906484},{""Name"":""常量的分类"",""Code"":""consts_type"",""Sort"":100,""Remark"":""常量的分类,用于区别一组配置"",""Status"":0,""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070906485},{""Name"":""是否"",""Code"":""yes_or_no"",""Sort"":100,""Remark"":""是否"",""Status"":0,""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070906486},{""Name"":""访问类型"",""Code"":""vis_type"",""Sort"":100,""Remark"":""访问类型"",""Status"":0,""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070906487},{""Name"":""菜单类型"",""Code"":""menu_type"",""Sort"":100,""Remark"":""菜单类型"",""Status"":0,""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070906488},{""Name"":""发送类型"",""Code"":""send_type"",""Sort"":100,""Remark"":""发送类型"",""Status"":0,""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070906489},{""Name"":""打开方式"",""Code"":""open_type"",""Sort"":100,""Remark"":""打开方式"",""Status"":0,""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070906490},{""Name"":""菜单权重"",""Code"":""menu_weight"",""Sort"":100,""Remark"":""菜单权重"",""Status"":0,""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070906491},{""Name"":""数据范围类型"",""Code"":""data_scope_type"",""Sort"":100,""Remark"":""数据范围类型"",""Status"":0,""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070906492},{""Name"":""短信发送来源"",""Code"":""sms_send_source"",""Sort"":100,""Remark"":""短信发送来源"",""Status"":0,""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070906493},{""Name"":""操作类型"",""Code"":""op_type"",""Sort"":100,""Remark"":""操作类型"",""Status"":0,""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070906494},{""Name"":""文件存储位置"",""Code"":""file_storage_location"",""Sort"":100,""Remark"":""文件存储位置"",""Status"":0,""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070906495},{""Name"":""运行状态"",""Code"":""run_status"",""Sort"":100,""Remark"":""定时任务运行状态"",""Status"":0,""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id
|
||
|
";
|
||
|
List<SysDictType> list = JsonUtil.ToObject<List<SysDictType>>(json);
|
||
|
|
||
|
return list;
|
||
|
}}
|