package cn.quantgroup.xyqb.service.captcha;

import java.util.Locale;
import java.util.Map;

/**
 * @author xufei on 2018/1/30.
 */
public interface IQuantgroupCaptchaService {
    /**
     * 获取QG验证码
     *
     * @param locale
     * @return
     * @throws Exception EX
     */
    Map<String, String> fetchQuantgroupCaptcha(Locale locale);

    /**
     * 校验QG验证码
     *
     * @param captchaId
     * @param captchaValue
     * @return
     */
    boolean validQuantgroupCaptcha(String captchaId, String captchaValue);
}
