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
34 KiB

using GDZZ.Core;
using GDZZ.Core.Entity;
namespace GDZZ.CodeFirst;
public class SysDictDataSeedData : ISeedData , ISqlSugarEntitySeedData<SysDictData>
{ public IEnumerable<SysDictData> HasData()
{ string json = @"[{""TypeId"":142307070906484,""Value"":""男"",""Code"":""1"",""Sort"":100,""Remark"":""男性"",""Status"":0,""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902375},{""TypeId"":142307070906484,""Value"":""女"",""Code"":""2"",""Sort"":100,""Remark"":""女性"",""Status"":0,""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902376},{""TypeId"":142307070906484,""Value"":""未知"",""Code"":""3"",""Sort"":100,""Remark"":""未知性别"",""Status"":0,""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902377},{""TypeId"":142307070906485,""Value"":""默认常量"",""Code"":""DEFAULT"",""Sort"":100,""Remark"":""默认常量都以XIAONUO_开头的"",""Status"":0,""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902378},{""TypeId"":142307070906485,""Value"":""阿里云短信"",""Code"":""ALIYUN_SMS"",""Sort"":100,""Remark"":""阿里云短信配置"",""Status"":0,""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902379},{""TypeId"":142307070906485,""Value"":""腾讯云短信"",""Code"":""TENCENT_SMS"",""Sort"":100,""Remark"":""腾讯云短信"",""Status"":0,""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902380},{""TypeId"":142307070906485,""Value"":""邮件配置"",""Code"":""EMAIL"",""Sort"":100,""Remark"":""邮件配置"",""Status"":0,""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902381},{""TypeId"":142307070906485,""Value"":""文件上传路径"",""Code"":""FILE_PATH"",""Sort"":100,""Remark"":""文件上传路径"",""Status"":0,""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902382},{""TypeId"":142307070906485,""Value"":""Oauth配置"",""Code"":""OAUTH"",""Sort"":100,""Remark"":""Oauth配置"",""Status"":0,""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902383},{""TypeId"":142307070906483,""Value"":""正常"",""Code"":""0"",""Sort"":100,""Remark"":""正常"",""Status"":0,""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902384},{""TypeId"":142307070906483,""Value"":""停用"",""Code"":""1"",""Sort"":100,""Remark"":""停用"",""Status"":0,""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902385},{""TypeId"":142307070906483,""Value"":""删除"",""Code"":""2"",""Sort"":100,""Remark"":""删除"",""Status"":0,""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902386},{""TypeId"":142307070906486,""Value"":""否"",""Code"":""N"",""Sort"":100,""Remark"":""否"",""Status"":0,""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902387},{""TypeId"":142307070906486,""Value"":""是"",""Code"":""Y"",""Sort"":100,""Remark"":""<22>
";
List<SysDictData> list = JsonUtil.ToObject<List<SysDictData>>(json);
return list;
}}