mirror of
https://github.com/dromara/tianai-captcha.git
synced 2026-05-14 03:14:05 +08:00
重构 resource 模块,支持自定义tag标签
重构 transform 模块 修复以及优化各验证码生成器,
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
package cloud.tianai.captcha.resource;
|
||||
|
||||
import cloud.tianai.captcha.resource.common.model.dto.Resource;
|
||||
import cloud.tianai.captcha.resource.common.model.dto.ResourceMap;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Author: 天爱有情
|
||||
@@ -17,17 +17,19 @@ public interface ImageCaptchaResourceManager {
|
||||
* 随机获取某个模板
|
||||
*
|
||||
* @param type 验证码类型
|
||||
* @param tag 二级过滤,可以为空
|
||||
* @return Map<String, Resource>
|
||||
*/
|
||||
Map<String, Resource> randomGetTemplate(String type);
|
||||
ResourceMap randomGetTemplate(String type, String tag);
|
||||
|
||||
/**
|
||||
* 随机获取某个资源对象
|
||||
*
|
||||
* @param type 验证码类型
|
||||
* @param tag 二级过滤,可以为空
|
||||
* @return Resource
|
||||
*/
|
||||
Resource randomGetResource(String type);
|
||||
Resource randomGetResource(String type, String tag);
|
||||
|
||||
/**
|
||||
* 获取真正的资源流通过资源对象
|
||||
|
||||
Reference in New Issue
Block a user