ValidateCodeService.java 482 Bytes
package com.bs.gateway.service;

import com.bs.gateway.exception.CaptchaException;
import com.bs.common.core.domain.AjaxResult;

import java.io.IOException;

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

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