ValidateCodeService.java 497 字节
package cn.brotop.gateway.service;

import java.io.IOException;
import cn.brotop.common.core.exception.CaptchaException;
import cn.brotop.common.core.web.domain.AjaxResult;

/**
 * 验证码处理
 * 
 * @author 啊雷
 */
public interface ValidateCodeService
{
    /**
     * 生成验证码
     */
    public AjaxResult createCapcha() throws IOException, CaptchaException;

    /**
     * 校验验证码
     */
    public void checkCapcha(String key, String value) throws CaptchaException;
}