package com.muyu.gateway.service;

import com.muyu.common.core.exception.CaptchaException;
import com.muyu.common.core.domain.Result;

import java.io.IOException;

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

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