AbstractVerificationCodeService

abstract class AbstractVerificationCodeService(stringRedisTemplate: StringRedisTemplate, oauth2Properties: Oauth2Properties) : VerificationCodeService

验证码服务抽象实现

统一处理验证码生成、存储、频控与校验逻辑

Author

lishangbu

Since

2026/3/13

Inheritors

Constructors

Link copied to clipboard
constructor(stringRedisTemplate: StringRedisTemplate, oauth2Properties: Oauth2Properties)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun generateCode(target: String, type: String): String

生成状态码

Link copied to clipboard
open override fun verifyCode(target: String, code: String, type: String)

返回校验状态码