提交.Net6版本
This commit is contained in:
16
Yi.Framework.Net5/Yi.Framework.Common/Const/DbConst.cs
Normal file
16
Yi.Framework.Net5/Yi.Framework.Common/Const/DbConst.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Common.Const
|
||||
{
|
||||
public class DbConst
|
||||
{
|
||||
public const string Mysql = "Mysql";
|
||||
public const string Sqlite = "Sqlite";
|
||||
public const string Sqlserver = "Sqlserver";
|
||||
public const string Oracle = "Oracle";
|
||||
}
|
||||
}
|
||||
14
Yi.Framework.Net5/Yi.Framework.Common/Const/FileConst.cs
Normal file
14
Yi.Framework.Net5/Yi.Framework.Common/Const/FileConst.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Common.Const
|
||||
{
|
||||
public class FileConst
|
||||
{
|
||||
public const string Image = "Image";
|
||||
public const string File = "File";
|
||||
}
|
||||
}
|
||||
17
Yi.Framework.Net5/Yi.Framework.Common/Const/JobConst.cs
Normal file
17
Yi.Framework.Net5/Yi.Framework.Common/Const/JobConst.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Common.Const
|
||||
{
|
||||
public class JobConst
|
||||
{
|
||||
|
||||
public const string url = nameof(url);
|
||||
|
||||
public const string method = nameof(method);
|
||||
}
|
||||
|
||||
}
|
||||
12
Yi.Framework.Net5/Yi.Framework.Common/Const/JwtConst.cs
Normal file
12
Yi.Framework.Net5/Yi.Framework.Common/Const/JwtConst.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Yi.Framework.Common.Const
|
||||
{
|
||||
public class JwtConst
|
||||
{
|
||||
public const string SecurityKey = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDI2a2EJ7m872v0afyoSDJT2o1+SitIeJSWtLJU8/Wz2m7gStexajkeD+Lka6DSTy8gt9UwfgVQo6uKjVLG5Ex7PiGOODVqAEghBuS7JzIYU5RvI543nNDAPfnJsas96mSA7L/mD7RTE2drj6hf3oZjJpMPZUQI/B1Qjb5H3K3PNwIDAQAB";
|
||||
public const string Domain = "https://localhost:44329";
|
||||
}
|
||||
}
|
||||
15
Yi.Framework.Net5/Yi.Framework.Common/Const/RabbitConst.cs
Normal file
15
Yi.Framework.Net5/Yi.Framework.Common/Const/RabbitConst.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Common.Const
|
||||
{
|
||||
public class RabbitConst
|
||||
{
|
||||
private const string prefix = "Yi.Framework.";
|
||||
public const string SMS_Exchange = prefix+"SMS.Exchange";
|
||||
public const string SMS_Queue_Send = prefix+ "SMS.Queue.Send";
|
||||
}
|
||||
}
|
||||
43
Yi.Framework.Net5/Yi.Framework.Common/Const/RedisConst.cs
Normal file
43
Yi.Framework.Net5/Yi.Framework.Common/Const/RedisConst.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Common.Const
|
||||
{
|
||||
public class RedisConst
|
||||
{
|
||||
/// <summary>
|
||||
/// 前缀
|
||||
/// </summary>
|
||||
public const string key = "YiFramework:data";
|
||||
|
||||
public const string keyCode = "YiFramework:code";
|
||||
///// <summary>
|
||||
///// 初始化角色名
|
||||
///// </summary>
|
||||
//public const string InitRole_key = nameof(InitRole_key);
|
||||
|
||||
///// <summary>
|
||||
///// 标题名
|
||||
///// </summary>
|
||||
//public const string Title_key = nameof(Title_key);
|
||||
|
||||
///// <summary>
|
||||
///// 图片列表名
|
||||
///// </summary>
|
||||
//public const string ImageList_key = nameof(ImageList_key);
|
||||
|
||||
//public static Dictionary<string, string> stringData = new Dictionary<string, string>()
|
||||
//{
|
||||
// {prefix+nameof(InitRole_key), "普通用户"},
|
||||
// {prefix+nameof(Title_key), "YiFramework"},
|
||||
//};
|
||||
|
||||
//public static Dictionary<string, List<string>> listData = new Dictionary<string, List<string>>()
|
||||
//{
|
||||
// {prefix+nameof(ImageList_key), new List<string>(){"图片地址1", "图片地址2", "图片地址3", "图片地址4" } }
|
||||
//};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user