package com.dimple.gateway.service;

import com.dimple.common.core.exception.CaptchaException;
import com.dimple.common.core.web.vo.params.AjaxResult;

import java.io.IOException;

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

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