SYYTe/fast-boot-system/src/main/java/net/maku/system/service/SysCaptchaService.java
2022-08-28 00:01:17 +08:00

26 lines
465 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 net.maku.system.service;
/**
* 验证码
*
* @author 阿沐 babamu@126.com
*/
public interface SysCaptchaService {
/**
* 生成验证码
*
* @param key key
* @return 返回base64图片验证码
*/
String generate(String key);
/**
* 验证码效验
*
* @param key key
* @param code 验证码
* @return true成功 false失败
*/
boolean validate(String key, String code);
}