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

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using Magic.Core;
using Magic.Core.Entity;
namespace Magic.CodeFirst;
public class SysConfigSeedData : ISeedData , ISqlSugarEntitySeedData<SysConfig>
{ public IEnumerable<SysConfig> HasData()
{ string json = @"[{""Name"":""jwt密钥"",""Code"":""JWT_SECRET"",""Value"":""xiaonuo"",""SysFlag"":""Y"",""Remark"":""重要jwt密钥默认为空自行设置"",""Status"":0,""GroupCode"":""DEFAULT"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902342},{""Name"":""默认密码"",""Code"":""DEFAULT_PASSWORD"",""Value"":""123456"",""SysFlag"":""Y"",""Remark"":""默认密码"",""Status"":0,""GroupCode"":""DEFAULT"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902343},{""Name"":""token过期时间"",""Code"":""TOKEN_EXPIRE"",""Value"":""86400"",""SysFlag"":""Y"",""Remark"":""token过期时间单位"",""Status"":0,""GroupCode"":""DEFAULT"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902344},{""Name"":""session会话过期时间"",""Code"":""SESSION_EXPIRE"",""Value"":""7200"",""SysFlag"":""Y"",""Remark"":""session会话过期时间单位"",""Status"":0,""GroupCode"":""DEFAULT"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902345},{""Name"":""阿里云短信keyId"",""Code"":""ALIYUN_SMS_ACCESSKEY_ID"",""Value"":""你的keyId"",""SysFlag"":""Y"",""Remark"":""阿里云短信keyId"",""Status"":0,""GroupCode"":""ALIYUN_SMS"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902346},{""Name"":""阿里云短信secret"",""Code"":""ALIYUN_SMS_ACCESSKEY_SECRET"",""Value"":""你的secret"",""SysFlag"":""Y"",""Remark"":""阿里云短信secret"",""Status"":0,""GroupCode"":""ALIYUN_SMS"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902347},{""Name"":""阿里云短信签名"",""Code"":""ALIYUN_SMS_SIGN_NAME"",""Value"":""你的签名"",""SysFlag"":""Y"",""Remark"":""阿里云短信签名"",""Status"":0,""GroupCode"":""ALIYUN_SMS"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902348},{""Name"":""阿里云短信-登录模板号"",""Code"":""ALIYUN_SMS_LOGIN_TEMPLATE_CODE"",""Value"":""SMS_1877123456"",""SysFlag"":""Y"",""Remark"":""阿里云短信-登录模板号"",""Status"":0,""GroupCode"":""ALIYUN_SMS"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902349},{""Name"":""阿里云短信默认失效时间"",""Code"":""ALIYUN_SMS_INVALIDATE_MINUTES"",""Value"":""5"",""SysFlag"":""Y"",""Remark"":""阿里云短信默认失效时间(单位:分钟)"",""Status"":0,""GroupCode"":""ALIYUN_SMS"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902350},{""Name"":""腾讯云短信secretId"",""Code"":""TENCENT_SMS_SECRET_ID"",""Value"":""你的secretId"",""SysFlag"":""Y"",""Remark"":""腾讯云短信secretId"",""Status"":0,""GroupCode"":""TENCENT_SMS"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902351},{""Name"":""腾讯云短信secretKey"",""Code"":""TENCENT_SMS_SECRET_KEY"",""Value"":""你的secretkey"",""SysFlag"":""Y"",""Remark"":""腾讯云短信secretKey"",""Status"":0,""GroupCode"":""TENCENT_SMS"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902352},{""Name"":""腾讯云短信sdkAppId"",""Code"":""TENCENT_SMS_SDK_APP_ID"",""Value"":""1400375123"",""SysFlag"":""Y"",""Remark"":""腾讯云短信sdkAppId"",""Status"":0,""GroupCode"":""TENCENT_SMS"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902353},{""Name"":""腾讯云短信签名"",""Code"":""TENCENT_SMS_SIGN"",""Value"":""你的签名"",""SysFlag"":""Y"",""Remark"":""腾讯云短信签名"",""Status"":0,""GroupCode"":""TENCENT_SMS"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902354},{""Name"":""邮箱host"",""Code"":""EMAIL_HOST"",""Value"":""smtp.126.com"",""SysFlag"":""Y"",""Remark"":""邮箱host"",""Status"":0,""GroupCode"":""EMAIL"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902355},{""Name"":""邮箱用户名"",""Code"":""EMAIL_USERNAME"",""Value"":""test@126.com"",""SysFlag"":""Y"",""Remark"":""邮箱用户名"",""Status"":0,""GroupCode"":""EMAIL"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902356},{""Name"":""邮箱密码"",""Code"":""EMAIL_PASSWORD"",""Value"":""你的邮箱密码"",""SysFlag"":""Y"",""Remark"":""邮箱密码"",""Status"":0,""GroupCode"":""EMAIL"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902357},{""Name"":""邮箱端口"",""Code"":""EMAIL_PORT"",""Value"":""465"",""SysFlag"":""Y"",""Remark"":""邮箱端口"",""Status"":0,""GroupCode"":""EMAIL"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902358},{""Name"":""邮箱是否开启ssl"",""Code"":""EMAIL_SSL"",""Value"":""true"",""SysFlag"":""Y"",""Remark"":""邮箱是否开启ssl"",""Status"":0,""GroupCode"":""EMAIL"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902359},{""Name"":""邮箱发件人"",""Code"":""EMAIL_FROM"",""Value"":""test@126.com"",""SysFlag"":""Y"",""Remark"":""邮箱发件人"",""Status"":0,""GroupCode"":""EMAIL"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902360},{""Name"":""Win本地上传文件路径"",""Code"":""FILE_UPLOAD_PATH_FOR_WINDOWS"",""Value"":""D:/tmp"",""SysFlag"":""Y"",""Remark"":""Win本地上传文件路径"",""Status"":0,""GroupCode"":""FILE_PATH"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902361},{""Name"":""Linux/Mac本地上传文件路径"",""Code"":""FILE_UPLOAD_PATH_FOR_LINUX"",""Value"":""/tmp"",""SysFlag"":""Y"",""Remark"":""Linux/Mac本地上传文件路径"",""Status"":0,""GroupCode"":""FILE_PATH"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902362},{""Name"":""放开XSS过滤的接口"",""Code"":""UN_XSS_FILTER_URL"",""Value"":""/demo/xssfilter,/demo/unxss"",""SysFlag"":""Y"",""Remark"":""多个url可以用英文逗号隔开"",""Status"":0,""GroupCode"":""DEFAULT"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902363},{""Name"":""单用户登陆的开关"",""Code"":""ENABLE_SINGLE_LOGIN"",""Value"":""false"",""SysFlag"":""Y"",""Remark"":""true-打开false-关闭,如果一个人登录两次,就会将上一次登陆挤下去"",""Status"":0,""GroupCode"":""DEFAULT"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902364},{""Name"":""登录验证码的开关"",""Code"":""CAPTCHA_OPEN"",""Value"":""false"",""SysFlag"":""Y"",""Remark"":""true-打开false-关闭"",""Status"":0,""GroupCode"":""DEFAULT"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902365},{""Name"":""Druid监控登录账号"",""Code"":""DRUID_USERNAME"",""Value"":""superAdmin"",""SysFlag"":""Y"",""Remark"":""Druid监控登录账号"",""Status"":0,""GroupCode"":""DEFAULT"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902366},{""Name"":""Druid监控界面登录密码"",""Code"":""DRUID_PASSWORD"",""Value"":""123456"",""SysFlag"":""Y"",""Remark"":""Druid监控界面登录密码"",""Status"":0,""GroupCode"":""DEFAULT"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902367},{""Name"":""阿里云定位api接口地址"",""Code"":""IP_GEO_API"",""Value"":""http://api01.aliyun.venuscn.com/ip?ip=%s"",""SysFlag"":""Y"",""Remark"":""阿里云定位api接口地址"",""Status"":0,""GroupCode"":""DEFAULT"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902368},{""Name"":""阿里云定位appCode"",""Code"":""IP_GEO_APP_CODE"",""Value"":""461535aabeae4f34861884d392f5d452"",""SysFlag"":""Y"",""Remark"":""阿里云定位appCode"",""Status"":0,""GroupCode"":""DEFAULT"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902369},{""Name"":""Oauth用户登录的开关"",""Code"":""ENABLE_OAUTH_LOGIN"",""Value"":""true"",""SysFlag"":""Y"",""Remark"":""Oauth用户登录的开关"",""Status"":0,""GroupCode"":""OAUTH"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902370},{""Name"":""Oauth码云登录ClientId"",""Code"":""OAUTH_GITEE_CLIENT_ID"",""Value"":""你的clientId"",""SysFlag"":""Y"",""Remark"":""Oauth码云登录ClientId"",""Status"":0,""GroupCode"":""OAUTH"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902371},{""Name"":""Oauth码云登录ClientSecret"",""Code"":""OAUTH_GITEE_CLIENT_SECRET"",""Value"":""你的clientSecret"",""SysFlag"":""Y"",""Remark"":""Oauth码云登录ClientSecret"",""Status"":0,""GroupCode"":""OAUTH"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902372},{""Name"":""Oauth码云登录回调地址"",""Code"":""OAUTH_GITEE_REDIRECT_URI"",""Value"":""http://127.0.0.1:5566/oauth/callback/gitee"",""SysFlag"":""Y"",""Remark"":""Oauth码云登录回调地址"",""Status"":0,""GroupCode"":""OAUTH"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902373},{""Name"":""演示环境"",""Code"":""DEMO_ENV_FLAG"",""Value"":""false"",""SysFlag"":""Y"",""Remark"":""演示环境的开关,true-打开false-关闭,如果演示环境开启,则只能读数据不能写数据"",""Status"":0,""GroupCode"":""DEFAULT"",""CreatedTime"":null,""UpdatedTime"":null,""CreatedUserId"":null,""CreatedUserName"":null,""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":142307070902374}]
";
List<SysConfig> list = JsonUtil.ToObject<List<SysConfig>>(json);
return list;
}}