无关风月
2024-11-29 d25ce2cd9f6aa64c4259a5a52366415a3f83d879
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.xinquan.gateway.service;
 
import java.io.IOException;
import com.xinquan.common.core.exception.CaptchaException;
import com.xinquan.common.core.web.domain.AjaxResult;
 
/**
 * 验证码处理
 *
 * @author ruoyi
 */
public interface ValidateCodeService
{
    /**
     * 生成验证码
     */
    public AjaxResult createCaptcha() throws IOException, CaptchaException;
 
    /**
     * 校验验证码
     */
    public void checkCaptcha(String key, String value) throws CaptchaException;
}