java-admin-template/admin/src/main/java/io/modules/security/service/CaptchaService.java
2025-01-07 20:16:08 +08:00

29 lines
489 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package io.modules.security.service;
import jakarta.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
* 验证码
*
*/
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);
}