package com.securitycontrol.gateway.service;

import com.securitycontrol.common.core.exception.CaptchaException;
import com.securitycontrol.common.core.web.domain.AjaxResult;

import java.io.IOException;

/**
 * 验证码处理
 *
 * @author czc
 */
public interface ValidateCodeService
{
    /**
     *用户id
     * @return
     * @throws IOException
     * @throws CaptchaException
     */
    public AjaxResult createCaptcha() throws IOException, CaptchaException;

    /**
     * 位置
     * @param key
     * @param value
     * @throws CaptchaException
     */
    public void checkCaptcha(String key, String value) throws CaptchaException;
}
