com.healthy.common.security.code.ValidateCodeRepository Maven / Gradle / Ivy
package com.healthy.common.security.code;
import org.springframework.web.context.request.ServletWebRequest;
/**
* ValidateCodeRepository
*
* @author xiaomingzhang
*/
public interface ValidateCodeRepository {
/**
* Save verification code
*
* @param request
* @param code
* @param validateCodeType
*/
void save(ServletWebRequest request, ValidateCode code, ValidateCodeType validateCodeType);
/**
* get verification code
*
* @param request
* @param validateCodeType
* @return ValidateCode
*/
ValidateCode get(ServletWebRequest request, ValidateCodeType validateCodeType);
/**
* remove verification code
*
* @param request
* @param codeType
*/
void remove(ServletWebRequest request, ValidateCodeType codeType);
}