refactor: 使用DbHelper类中的常量

This commit is contained in:
Argo Zhang 2019-07-01 19:04:33 +08:00
parent ce897986a7
commit b54a1fcc82
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
4 changed files with 8 additions and 7 deletions

View File

@ -1,4 +1,5 @@
using Bootstrap.Security;
using Bootstrap.Security.DataAccess;
using Longbow.Cache;
using Longbow.Data;
using Longbow.Web;
@ -19,7 +20,7 @@ namespace Bootstrap.DataAccess
/// <summary>
/// 缓存索引BootstrapAdmin后台清理缓存时使用
/// </summary>
public const string RetrieveDictsDataKey = "BootstrapDict-RetrieveDicts";
public const string RetrieveDictsDataKey = DbHelper.RetrieveDictsDataKey;
/// <summary>
///

View File

@ -1,4 +1,5 @@
using Longbow.Cache;
using Bootstrap.Security.DataAccess;
using Longbow.Cache;
using Longbow.Data;
using System.Collections.Generic;
@ -24,7 +25,7 @@ namespace Bootstrap.DataAccess
/// <summary>
///
/// </summary>
public const string RetrieveGroupsByUserNameDataKey = "GroupHelper-RetrieveGroupsByUserName";
public const string RetrieveGroupsByUserNameDataKey = DbHelper.RetrieveGroupsByUserNameDataKey;
/// <summary>
/// 查询所有群组信息

View File

@ -2,8 +2,6 @@
using Bootstrap.Security.DataAccess;
using Longbow.Cache;
using Longbow.Data;
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Linq;
@ -22,7 +20,7 @@ namespace Bootstrap.DataAccess
/// <summary>
///
/// </summary>
public const string RetrieveMenusAll = "BootstrapMenu-RetrieveMenus";
public const string RetrieveMenusAll = DbHelper.RetrieveMenusAll;
/// <summary>
///

View File

@ -1,4 +1,5 @@
using Bootstrap.Security;
using Bootstrap.Security.DataAccess;
using Longbow.Cache;
using Longbow.Data;
using System;
@ -32,7 +33,7 @@ namespace Bootstrap.DataAccess
/// <summary>
///
/// </summary>
public const string RetrieveUsersByNameDataKey = "BootstrapUser-RetrieveUsersByName";
public const string RetrieveUsersByNameDataKey = DbHelper.RetrieveUsersByNameDataKey;
private static bool UserChecker(User user)
{