package cn.com.poc.common.service;

import cn.com.yict.framemax.core.i18n.I18nMessageException;

public interface JudgeCodeService {
    /**
     * 校验验证码是否正确
     *
     * @param account,code
     * @throws Exception
     */
    boolean judgeCode(String account, String code) throws Exception;

    /**
     * 校验验证码是否正确,正确的话就返回授权码，可以给别的业务操作
     *
     * @param account,code
     * @throws Exception
     */
    String judgeCodeReturnAuthCode(String account,  String code)  throws Exception;
}
