U 修改资源读取和存储模块

升级版本为1.2
This commit is contained in:
liushaofeng
2021-08-07 17:16:57 +08:00
parent c5260356de
commit b56919f17d
14 changed files with 702 additions and 223 deletions
@@ -0,0 +1,34 @@
package cloud.tianai.captcha.template.slider;
import java.io.InputStream;
/**
* @Author: 天爱有情
* @date 2021/8/7 15:07
* @Description 资源提供者
*/
public interface ResourceProvider {
/**
* 获取资源
*
* @param data data
* @return InputStream
*/
InputStream getResourceInputStream(Resource data);
/**
* 是否支持
*
* @param type type
* @return boolean
*/
boolean supported(String type);
/**
* 放弃资源提供者名称
*
* @return String
*/
String getName();
}