using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;

namespace Dilon.Core
{
    /// <summary>
    /// 系统参数配置表种子数据
    /// </summary>
    public class SysConfigSeedData : IEntitySeedData<SysConfig>
    {
        /// <summary>
        /// 种子数据
        /// </summary>
        /// <param name="dbContext"></param>
        /// <param name="dbContextLocator"></param>
        /// <returns></returns>
        public IEnumerable<SysConfig> HasData(DbContext dbContext, Type dbContextLocator)
        {
            return new[]
            {
                new SysConfig{Id="7c2765cd-d39b-4772-8d6c-0dbcdcfa1ff8", Name="jwt密钥", Code="DILON_JWT_SECRET", Value="xiaonuo",SysFlag="Y", Remark="（重要）jwt密钥，默认为空，自行设置", Status=0, GroupCode="DEFAULT"},
                new SysConfig{Id="e3553657-14cf-4c26-ba7b-dbb4bfd4bc55", Name="默认密码", Code="DILON_DEFAULT_PASSWORD", Value="123456",SysFlag="Y", Remark="默认密码", Status=0, GroupCode="DEFAULT"},
                new SysConfig{Id="2c677cd2-2a54-46c6-971d-f9fe20f101f3", Name="token过期时间", Code="DILON_TOKEN_EXPIRE", Value="86400",SysFlag="Y", Remark="token过期时间（单位：秒）", Status=0, GroupCode="DEFAULT"},
                new SysConfig{Id="8938506d-2e00-44e0-8592-48453d43f9f5", Name="session会话过期时间", Code="DILON_SESSION_EXPIRE", Value="7200",SysFlag="Y", Remark="session会话过期时间（单位：秒）", Status=0, GroupCode="DEFAULT"},
                new SysConfig{Id="beb2e9e7-f4d9-43b1-bfab-3557ea232f8d", Name="阿里云短信keyId", Code="DILON_ALIYUN_SMS_ACCESSKEY_ID", Value="你的keyId",SysFlag="Y", Remark="阿里云短信keyId", Status=0, GroupCode="ALIYUN_SMS"},
                new SysConfig{Id="ead14cd0-9fd4-4fd6-b75c-239d8b2ebed8", Name="阿里云短信secret", Code="DILON_ALIYUN_SMS_ACCESSKEY_SECRET", Value="你的secret",SysFlag="Y", Remark="阿里云短信secret", Status=0, GroupCode="ALIYUN_SMS"},
                new SysConfig{Id="beaaafc2-3fdf-42af-9b06-ead3a6dd6306", Name="阿里云短信签名", Code="DILON_ALIYUN_SMS_SIGN_NAME", Value="你的签名",SysFlag="Y", Remark="阿里云短信签名", Status=0, GroupCode="ALIYUN_SMS"},
                new SysConfig{Id="e26a10cf-911a-4fe0-a113-76965be749a0", Name="阿里云短信-登录模板号", Code="DILON_ALIYUN_SMS_LOGIN_TEMPLATE_CODE", Value="SMS_1877123456",SysFlag="Y", Remark="阿里云短信-登录模板号", Status=0, GroupCode="ALIYUN_SMS"},
                new SysConfig{Id="24d3f286-efca-49af-91b4-e3ce42cce36e", Name="阿里云短信默认失效时间", Code="DILON_ALIYUN_SMS_INVALIDATE_MINUTES", Value="5",SysFlag="Y", Remark="阿里云短信默认失效时间（单位：分钟）", Status=0, GroupCode="ALIYUN_SMS"},
                new SysConfig{Id="c6540a07-ce32-47b4-ab83-b647bdb14491", Name="腾讯云短信secretId", Code="DILON_TENCENT_SMS_SECRET_ID", Value="你的secretId",SysFlag="Y", Remark="腾讯云短信secretId", Status=0, GroupCode="TENCENT_SMS"},
                new SysConfig{Id="a0412212-d50b-42aa-9484-3cef8fe3cc59", Name="腾讯云短信secretKey", Code="DILON_TENCENT_SMS_SECRET_KEY", Value="你的secretkey",SysFlag="Y", Remark="腾讯云短信secretKey", Status=0, GroupCode="TENCENT_SMS"},
                new SysConfig{Id="c928ca11-5137-4b71-bf1c-f3bc95bcd34d", Name="腾讯云短信sdkAppId", Code="DILON_TENCENT_SMS_SDK_APP_ID", Value="1400375123",SysFlag="Y", Remark="腾讯云短信sdkAppId", Status=0, GroupCode="TENCENT_SMS"},
                new SysConfig{Id="16ce1b6e-c8ad-4299-9293-6caff0e5cb49", Name="腾讯云短信签名", Code="DILON_TENCENT_SMS_SIGN", Value="你的签名",SysFlag="Y", Remark="腾讯云短信签名", Status=0, GroupCode="TENCENT_SMS"},
                new SysConfig{Id="66e63d64-b7eb-4e6a-b5b6-c87811c2e700", Name="邮箱host", Code="DILON_EMAIL_HOST", Value="smtp.126.com",SysFlag="Y", Remark="邮箱host", Status=0, GroupCode="EMAIL"},
                new SysConfig{Id="997a9bc6-22ed-4fe6-a20c-c3c2a0b682a0", Name="邮箱用户名", Code="DILON_EMAIL_USERNAME", Value="test@126.com",SysFlag="Y", Remark="邮箱用户名", Status=0, GroupCode="EMAIL"},
                new SysConfig{Id="633d1851-41d9-4ebd-b83b-3aa4501cd1a7", Name="邮箱密码", Code="DILON_EMAIL_PASSWORD", Value="你的邮箱密码",SysFlag="Y", Remark="邮箱密码", Status=0, GroupCode="EMAIL"},
                new SysConfig{Id="67e468f7-e791-4e91-a896-62e9f7411635", Name="邮箱端口", Code="DILON_EMAIL_PORT", Value="465",SysFlag="Y", Remark="邮箱端口", Status=0, GroupCode="EMAIL"},
                new SysConfig{Id="dc462c05-de23-4f90-bcdc-88de4abcdf22", Name="邮箱是否开启ssl", Code="DILON_EMAIL_SSL", Value="true",SysFlag="Y", Remark="邮箱是否开启ssl", Status=0, GroupCode="EMAIL"},
                new SysConfig{Id="8beac2a0-4c67-4499-a7ce-27e989546ce9", Name="邮箱发件人", Code="DILON_EMAIL_FROM", Value="test@126.com",SysFlag="Y", Remark="邮箱发件人", Status=0, GroupCode="EMAIL"},
                new SysConfig{Id="55756524-ecb8-444e-9cdd-a0fc767c4b96", Name="Win本地上传文件路径", Code="DILON_FILE_UPLOAD_PATH_FOR_WINDOWS", Value="D:/tmp",SysFlag="Y", Remark="Win本地上传文件路径", Status=0, GroupCode="FILE_PATH"},
                new SysConfig{Id="d2db41ee-ce1f-46de-ac00-5860634afed9", Name="Linux/Mac本地上传文件路径", Code="DILON_FILE_UPLOAD_PATH_FOR_LINUX", Value="/tmp",SysFlag="Y", Remark="Linux/Mac本地上传文件路径", Status=0, GroupCode="FILE_PATH"},
                new SysConfig{Id="ff8debdd-eca0-4f91-8213-e2080f76b35d", Name="放开XSS过滤的接口", Code="DILON_UN_XSS_FILTER_URL", Value="/demo/xssfilter,/demo/unxss",SysFlag="Y", Remark="多个url可以用英文逗号隔开", Status=0, GroupCode="DEFAULT"},
                new SysConfig{Id="5584fb84-f580-463f-b06d-bbb80a4dfb72", Name="单用户登陆的开关", Code="DILON_ENABLE_SINGLE_LOGIN", Value="false",SysFlag="Y", Remark="true-打开，false-关闭，如果一个人登录两次，就会将上一次登陆挤下去", Status=0, GroupCode="DEFAULT"},
                new SysConfig{Id="53b0afb2-4917-4b85-bcca-fe7c7723ae22", Name="登录验证码的开关", Code="DILON_CAPTCHA_OPEN", Value="true",SysFlag="Y", Remark="true-打开，false-关闭", Status=0, GroupCode="DEFAULT"},
                new SysConfig{Id="974740d8-8647-4cf8-8102-542eea53e97f", Name="Druid监控登录账号", Code="DILON_DRUID_USERNAME", Value="superAdmin",SysFlag="Y", Remark="Druid监控登录账号", Status=0, GroupCode="DEFAULT"},
                new SysConfig{Id="8cee44ea-ba4c-42db-a57d-69b8b5316ca5", Name="Druid监控界面登录密码", Code="DILON_DRUID_PASSWORD", Value="123456",SysFlag="Y", Remark="Druid监控界面登录密码", Status=0, GroupCode="DEFAULT"},
                new SysConfig{Id="efc235ab-9b05-4820-afe4-32a1eb59e4de", Name="阿里云定位api接口地址", Code="DILON_IP_GEO_API", Value="http://api01.aliyun.venuscn.com/ip?ip=%s",SysFlag="Y", Remark="阿里云定位api接口地址", Status=0, GroupCode="DEFAULT"},
                new SysConfig{Id="d3597d8a-562a-4b24-93c7-8655c5445d74", Name="阿里云定位appCode", Code="DILON_IP_GEO_APP_CODE", Value="461535aabeae4f34861884d392f5d452",SysFlag="Y", Remark="阿里云定位appCode", Status=0, GroupCode="DEFAULT"},
                new SysConfig{Id="59c8a6f2-9e3c-4e9e-b9cf-8ecad5f0cb45", Name="Oauth用户登录的开关", Code="DILON_ENABLE_OAUTH_LOGIN", Value="true",SysFlag="Y", Remark="Oauth用户登录的开关", Status=0, GroupCode="OAUTH"},
                new SysConfig{Id="ff502ee7-8129-4828-8d16-fb04562ef52c", Name="Oauth码云登录ClientId", Code="DILON_OAUTH_GITEE_CLIENT_ID", Value="你的clientId",SysFlag="Y", Remark="Oauth码云登录ClientId", Status=0, GroupCode="OAUTH"},
                new SysConfig{Id="a1d957ef-2b70-456f-8eda-b70a4cf01535", Name="Oauth码云登录ClientSecret", Code="DILON_OAUTH_GITEE_CLIENT_SECRET", Value="你的clientSecret",SysFlag="Y", Remark="Oauth码云登录ClientSecret", Status=0, GroupCode="OAUTH"},
                new SysConfig{Id="b32ee22b-671d-40bf-8070-32e1054fef96", Name="Oauth码云登录回调地址", Code="DILON_OAUTH_GITEE_REDIRECT_URI", Value="http://127.0.0.1:5566/oauth/callback/gitee",SysFlag="Y", Remark="Oauth码云登录回调地址", Status=0, GroupCode="OAUTH"},
                new SysConfig{Id="38dda85c-2a98-4768-aebd-a60ab286052c", Name="演示环境", Code="DILON_DEMO_ENV_FLAG", Value="false",SysFlag="Y", Remark="演示环境的开关,true-打开，false-关闭，如果演示环境开启，则只能读数据不能写数据", Status=0, GroupCode="DEFAULT"},
            };
        }
    }
}
