Newer
Older
newfiber-termite / newfiber-gateway / src / main / java / com / newfiber / gateway / service / ValidateCodeService.java
@yanghui yanghui on 11 May 442 bytes 白蚁项目初版代码提交
package com.newfiber.gateway.service;

import com.newfiber.common.core.exception.CaptchaException;
import java.io.IOException;

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

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