23 lines
483 B
Java
23 lines
483 B
Java
package com.muyu.gateway.service;
|
|
import com.muyu.common.core.domain.Result;
|
|
import com.muyu.common.core.exception.CaptchaException;
|
|
|
|
import java.io.IOException;
|
|
|
|
/**
|
|
* 验证码处理
|
|
*
|
|
* @author muyu
|
|
*/
|
|
public interface ValidateCodeService {
|
|
/**
|
|
* 生成验证码
|
|
*/
|
|
public Result createCaptcha () throws IOException, CaptchaException;
|
|
|
|
/**
|
|
* 校验验证码
|
|
*/
|
|
public void checkCaptcha (String key, String value) throws CaptchaException;
|
|
}
|