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

namespace Dilon.Core
{
    /// <summary>
    /// 系统字典类型种子数据
    /// </summary>
    public class SysDictTypeSeedData : IEntitySeedData<SysDictType>
    {
        /// <summary>
        /// 种子数据
        /// </summary>
        /// <param name="dbContext"></param>
        /// <param name="dbContextLocator"></param>
        /// <returns></returns>
        public IEnumerable<SysDictType> HasData(DbContext dbContext, Type dbContextLocator)
        {
            return new[]
            {
                new SysDictType{Id="b0cfa91c-1189-4f39-bc5a-f035885d0604", Name="通用状态", Code="common_status", Sort=100, Remark="通用状态", Status=0 },
                new SysDictType{Id="301ed120-dfc5-4d7c-af59-b56a519581c9", Name="性别", Code="sex", Sort=100, Remark="性别字典", Status=0 },
                new SysDictType{Id="64afb5e7-9f00-4c4f-9ba6-6b41221bd862", Name="常量的分类", Code="consts_type", Sort=100, Remark="常量的分类，用于区别一组配置", Status=0 },
                new SysDictType{Id="f2f0e8bf-04da-4a2f-9fb8-1d6549227302", Name="是否", Code="yes_or_no", Sort=100, Remark="是否", Status=0 },
                new SysDictType{Id="2cecf329-cf95-44eb-a8d7-3fb77b13e093", Name="访问类型", Code="vis_type", Sort=100, Remark="访问类型", Status=0 },
                new SysDictType{Id="e973d383-c28e-42e0-9e23-5f2bd592fef5", Name="菜单类型", Code="menu_type", Sort=100, Remark="菜单类型", Status=0 },
                new SysDictType{Id="058db370-3718-42c3-8ba7-095341b1fe13", Name="发送类型", Code="send_type", Sort=100, Remark="发送类型", Status=0 },
                new SysDictType{Id="ff6202cb-25ce-4ab9-9c39-910c418b1d2d", Name="打开方式", Code="open_type", Sort=100, Remark="打开方式", Status=0 },
                new SysDictType{Id="b3235678-f7fe-442b-8fba-e792a89b78f2", Name="菜单权重", Code="menu_weight", Sort=100, Remark="菜单权重", Status=0 },
                new SysDictType{Id="a2068ed1-62a6-463c-b720-06111d994079", Name="数据范围类型", Code="data_scope_type", Sort=100, Remark="数据范围类型", Status=0 },
                new SysDictType{Id="688f9a69-ec95-46f4-87bb-e19e3cc5c7fc", Name="短信发送来源", Code="sms_send_source", Sort=100, Remark="短信发送来源", Status=0 },
                new SysDictType{Id="8461bd1d-311b-487e-b579-d6049c6fb191", Name="操作类型", Code="op_type", Sort=100, Remark="操作类型", Status=0 },
                new SysDictType{Id="b924e0c1-3f23-4e37-9f27-90e945381304", Name="文件存储位置", Code="file_storage_location", Sort=100, Remark="文件存储位置", Status=0 },
                new SysDictType{Id="0f1b8660-d932-4a53-a681-a38bebae91e0", Name="运行状态", Code="run_status", Sort=100, Remark="定时任务运行状态", Status=0 },
                new SysDictType{Id="d5b311fd-4b60-4b51-9156-b0e6d6cfa4d1", Name="通知公告类型", Code="notice_type", Sort=100, Remark="通知公告类型", Status=0 },
                new SysDictType{Id="b30937e6-03cd-4d98-a413-10b06d605e5a", Name="通知公告状态", Code="notice_status", Sort=100, Remark="通知公告状态", Status=0 },
                new SysDictType{Id="80aea9e7-ad1b-4f57-b4db-9d15813707bd", Name="是否boolean", Code="yes_true_false", Sort=100, Remark="是否boolean", Status=0 },
                new SysDictType{Id="430d0538-054a-4b37-a459-1095d0ccf4ae", Name="代码生成方式", Code="code_gen_create_type", Sort=100, Remark="代码生成方式", Status=0 },
                new SysDictType{Id="bc0dc25b-b85e-4dd1-8368-e014fe1bf30b", Name="请求方式", Code="request_type", Sort=100, Remark="请求方式", Status=0 },
                new SysDictType{Id="5bdf9b7a-a483-4b61-8e22-e2b25b255b91", Name="代码生成作用类型", Code="code_gen_effect_type", Sort=100, Remark="代码生成作用类型", Status=0 },
                new SysDictType{Id="41bc31f6-cef5-400d-b03a-bf51d27b2432", Name="代码生成查询类型", Code="code_gen_query_type", Sort=100, Remark="代码生成查询类型", Status=0 },
                new SysDictType{Id="28f653d4-e573-4f54-8e5c-4e308780145a", Name="代码生成.NET类型", Code="code_gen_net_type", Sort=100, Remark="代码生成.NET类型", Status=0 },
            };
        }
    }
}
