✨
This commit is contained in:
29
StopShopping.Services/Consts.cs
Normal file
29
StopShopping.Services/Consts.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
namespace StopShopping.Services;
|
||||
|
||||
/// <summary>
|
||||
/// 常量
|
||||
/// </summary>
|
||||
public static class Consts
|
||||
{
|
||||
/// <summary>
|
||||
/// 默认头像
|
||||
/// </summary>
|
||||
public const string DEFAULT_AVATAR = "avatar.png";
|
||||
/// <summary>
|
||||
/// 默认商品图片
|
||||
/// </summary>
|
||||
public const string DEFAULT_PRODUCT = "product.png";
|
||||
|
||||
/// <summary>
|
||||
/// 默认管理员账号
|
||||
/// </summary>
|
||||
public const string DEFAULT_ADMIN_ACCOUNT = "stopshopping";
|
||||
|
||||
public static class CacheKeys
|
||||
{
|
||||
public static string AccessTokenBlacklist(string token)
|
||||
{
|
||||
return $"accesstoken_blacklist:{token}";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user