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

using GDZZ.Core;
using GDZZ.Core.Entity;
namespace GDZZ.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,""C
";
List<SysConfig> list = JsonUtil.ToObject<List<SysConfig>>(json);
return list;
}}