This commit is contained in:
天爱有情
2022-05-07 11:14:15 +08:00
parent d802fd481a
commit afbb88c67d
46 changed files with 376 additions and 260 deletions
@@ -0,0 +1,37 @@
package cloud.tianai.captcha.resource;
import cloud.tianai.captcha.resource.common.model.dto.Resource;
import cloud.tianai.captcha.resource.common.model.dto.Resource;
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();
}