feat: 新增CaptchaService实现类的方法
This commit is contained in:
		@@ -1,9 +1,25 @@
 | 
			
		||||
package com.cnbm.admin.service;
 | 
			
		||||
 | 
			
		||||
import javax.servlet.http.HttpServletResponse;
 | 
			
		||||
import java.io.IOException;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @Author weihongyang
 | 
			
		||||
 * @Date 2022/6/8 8:55 AM
 | 
			
		||||
 * @Version 1.0
 | 
			
		||||
 */
 | 
			
		||||
public interface CaptchaService {
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 图片验证码
 | 
			
		||||
     */
 | 
			
		||||
    void create(HttpServletResponse response, String uuid) throws IOException;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 验证码效验
 | 
			
		||||
     * @param uuid  uuid
 | 
			
		||||
     * @param code  验证码
 | 
			
		||||
     * @return  true:成功  false:失败
 | 
			
		||||
     */
 | 
			
		||||
    boolean validate(String uuid, String code);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user