Some checks failed
Build docker and publish / build (20.15.1) (push) Failing after 6m39s
feat(database): 添加用户算法和盐字段的迁移脚本 fix(subscribe): 修复服务器用户列表缓存问题,临时禁用缓存 style(model): 清理用户模型注释,简化代码结构 chore: 删除无用脚本和测试文件 docs: 添加用户绑定流程文档 perf(login): 优化设备登录性能,添加设备缓存键 fix(unbind): 修复设备解绑时的缓存清理逻辑 refactor(verify): 简化邮箱验证逻辑,移除冗余代码 build(docker): 更新Dockerfile配置,使用scratch基础镜像
65 lines
1.9 KiB
Go
65 lines
1.9 KiB
Go
package config
|
|
|
|
// CurrencyConfigKey Currency Config Key
|
|
const CurrencyConfigKey = "system:currency_config"
|
|
|
|
// SmsConfigKey Mobile Config Key
|
|
const SmsConfigKey = "system:sms_config"
|
|
|
|
// SiteConfigKey Site Config Key
|
|
const SiteConfigKey = "system:site_config"
|
|
|
|
// SubscribeConfigKey Subscribe Config Key
|
|
const SubscribeConfigKey = "system:subscribe_config"
|
|
|
|
// RegisterConfigKey Register Config Key
|
|
const RegisterConfigKey = "system:register_config"
|
|
|
|
// VerifyConfigKey Verify Config Key
|
|
const VerifyConfigKey = "system:verify_config"
|
|
|
|
// EmailSmtpConfigKey Email Smtp Config Key
|
|
const EmailSmtpConfigKey = "system:email_smtp_config"
|
|
|
|
// NodeConfigKey Node Config Key
|
|
const NodeConfigKey = "system:node_config"
|
|
|
|
// InviteConfigKey Invite Config Key
|
|
const InviteConfigKey = "system:invite_config"
|
|
|
|
// TelegramConfigKey Telegram Config Key
|
|
const TelegramConfigKey = "system:telegram_config"
|
|
|
|
// TosConfigKey Tos配置
|
|
const TosConfigKey = "system:tos_config"
|
|
|
|
// VerifyCodeConfigKey Verify Code Config Key
|
|
const VerifyCodeConfigKey = "system:verify_code_config"
|
|
|
|
// SessionIdKey cache session key
|
|
const SessionIdKey = "auth:session_id"
|
|
|
|
// DeviceCacheKeyKey cache session key
|
|
const DeviceCacheKeyKey = "auth:device_identifier"
|
|
|
|
// GlobalConfigKey Global Config Key
|
|
const GlobalConfigKey = "system:global_config"
|
|
|
|
// AuthCodeCacheKey Register Code Cache Key
|
|
const AuthCodeCacheKey = "auth:verify:email"
|
|
|
|
// AuthCodeTelephoneCacheKey Register Code Cache Key
|
|
const AuthCodeTelephoneCacheKey = "auth:verify:telephone"
|
|
|
|
// CommonStatCacheKey CommonStat Cache Key
|
|
const CommonStatCacheKey = "common:stat"
|
|
|
|
// ServerCountCacheKey Server Count Cache Key
|
|
const ServerCountCacheKey = "server:count"
|
|
|
|
// SendIntervalKeyPrefix Auth Code Send Interval Key Prefix
|
|
const SendIntervalKeyPrefix = "send:interval:"
|
|
|
|
// SendCountLimitKeyPrefix Send Count Limit Key Prefix eg. send:limit:register:email:xxx@ppanel.dev
|
|
const SendCountLimitKeyPrefix = "send:limit:"
|