|
|
@@ -16,20 +16,22 @@ public class SmsRedisKeyUtils { |
|
|
|
private SmsRedisKeyUtils() { |
|
|
|
} |
|
|
|
|
|
|
|
private static final String PROJECT_NAME = "ls_pm:"; |
|
|
|
|
|
|
|
private static final String SMS_CODE_VERIFY_PREFIX = "sms:verify:"; |
|
|
|
private static final String SMS_SEND_LIMIT = "sms:limit:"; |
|
|
|
private static final String SMS_SEND_LOCK = "sms:lock:"; |
|
|
|
|
|
|
|
public static String smsCodeVerifyKey(VerificationCodeType type, String mobile) { |
|
|
|
return SMS_CODE_VERIFY_PREFIX + StrPool.COLON + type.name() + StrPool.COLON + mobile; |
|
|
|
return PROJECT_NAME + SMS_CODE_VERIFY_PREFIX + StrPool.COLON + type.name() + StrPool.COLON + mobile; |
|
|
|
} |
|
|
|
|
|
|
|
public static String smsSendLimitKey(VerificationCodeType type, String mobile) { |
|
|
|
return SMS_SEND_LIMIT + StrPool.COLON + type.name() + StrPool.COLON + mobile; |
|
|
|
return PROJECT_NAME + SMS_SEND_LIMIT + StrPool.COLON + type.name() + StrPool.COLON + mobile; |
|
|
|
} |
|
|
|
|
|
|
|
public static String smsSendLockKey(VerificationCodeType type, String mobile) { |
|
|
|
return SMS_SEND_LOCK + StrPool.COLON + type.name() + StrPool.COLON + mobile; |
|
|
|
return PROJECT_NAME + SMS_SEND_LOCK + StrPool.COLON + type.name() + StrPool.COLON + mobile; |
|
|
|
} |
|
|
|
|
|
|
|
} |