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.
137 lines
3.7 KiB
137 lines
3.7 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Znyc.Admin.Commons.Cache
|
|
{
|
|
public class CacheKey
|
|
{
|
|
/// <summary>
|
|
/// 默认密码
|
|
/// </summary>
|
|
public const string DEFAULT_PASSWORD = "a123456";
|
|
|
|
/// <summary>
|
|
/// 默认超速速度
|
|
/// </summary>
|
|
public const int DEFAULT_OVERSPEED = 80;
|
|
|
|
/// <summary>
|
|
/// 默认加密盐
|
|
/// </summary>
|
|
public const string DEFAULT_PASSWORD_SALT = "a4abd4acbdbdcc1c04b92735b6b22740";
|
|
|
|
/// <summary>
|
|
/// 用户缓存
|
|
/// </summary>
|
|
public const string CACHE_KEY_USER = "user_";
|
|
|
|
/// <summary>
|
|
/// 菜单缓存
|
|
/// </summary>
|
|
public const string CACHE_KEY_MENU = "menu_";
|
|
|
|
/// <summary>
|
|
/// 权限缓存
|
|
/// </summary>
|
|
public const string CACHE_KEY_PERMISSION = "permission_";
|
|
|
|
/// <summary>
|
|
/// 数据范围缓存
|
|
/// </summary>
|
|
public const string CACHE_KEY_DATASCOPE = "datascope_";
|
|
|
|
/// <summary>
|
|
/// 验证码缓存
|
|
/// </summary>
|
|
public const string CACHE_KEY_CODE = "vercode_";
|
|
|
|
/// <summary>
|
|
///角色缓存
|
|
/// </summary>
|
|
public const string CACHE_KEY_ROLE = "rolelist";
|
|
|
|
/// <summary>
|
|
///角色菜单缓存
|
|
/// </summary>
|
|
public const string CACHE_KEY_ROLEMENU = "rolemenulist_";
|
|
|
|
/// <summary>
|
|
///车辆类型缓存
|
|
/// </summary>
|
|
public const string CACHE_KEY_VEHICLETYPE = "vehicletypelist";
|
|
|
|
/// <summary>
|
|
///车辆分组缓存
|
|
/// </summary>
|
|
public const string CACHE_KEY_VEHICLEGROUP = "vehiclegroup_";
|
|
|
|
/// <summary>
|
|
///字典缓存
|
|
/// </summary>
|
|
public const string CACHE_KEY_DICTIONARY = "dictionarylist";
|
|
|
|
/// <summary>
|
|
///默认logo地址
|
|
/// </summary>
|
|
public const string DEFAULT_COMPANYLOG = "https://Znyc-public-1304677865.cos.ap-guangzhou.myqcloud.com/Logo.png";
|
|
|
|
/// <summary>
|
|
/// 头像地址前缀
|
|
/// </summary>
|
|
public const string Prefix_AvataUrl = "https://zhongnengyunche.com/dispatching/wx/upload/avatar/";
|
|
|
|
/// <summary>
|
|
///默认头像地址
|
|
/// </summary>
|
|
public const string DEFAULT_AVATARURL = "Default_AvatarUrl.png";
|
|
|
|
/// <summary>
|
|
/// 公司缓存
|
|
/// </summary>
|
|
public const string CACHE_KEY_COMPANY = "company_";
|
|
|
|
/// <summary>
|
|
/// JWT
|
|
/// </summary>
|
|
|
|
public const string CACHE_KEY_JWT = "jwt_";
|
|
|
|
/// <summary>
|
|
/// token
|
|
/// </summary>
|
|
public const string CACHE_KEY_TOKEN = "token:{0}";
|
|
|
|
/// <summary>
|
|
///公司车辆缓存
|
|
/// </summary>
|
|
public const string CACHE_KEY_VehicleByCompanyId = "vehicles:company_";
|
|
|
|
/// <summary>
|
|
/// 车辆缓存
|
|
/// </summary>
|
|
public const string CACHE_KEY_Vehicle = "vehicle:_";
|
|
|
|
/// <summary>
|
|
/// 车辆GPS信息缓存
|
|
/// </summary>
|
|
public const string CACHE_KEY_VehicleGps = "vehiclegps_{0}:{1}";
|
|
|
|
/// <summary>
|
|
/// 超速记录缓存
|
|
/// </summary>
|
|
public const string CACHE_KEY_VehicleAlert = "vehiclealert_{0}:{1}:{2}";
|
|
|
|
/// <summary>
|
|
/// 员工缓存
|
|
/// </summary>
|
|
public const string CACHE_KEY_EMPLOYEE = "employee:{0}";
|
|
|
|
/// <summary>
|
|
/// 员工列表缓存
|
|
/// </summary>
|
|
public const string CACHE_KEY_EMPLOYEES = "employees:{0}";
|
|
}
|
|
}
|
|
|