public interface CrudResourceStore extends ResourceStore
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addResource(String type,
Resource resource)
添加资源
|
void |
addTemplate(String type,
ResourceMap template)
添加模板
|
void |
clearAllResources()
清除所有内置资源
|
void |
clearAllTemplates()
清除所有内置模板
|
Resource |
deleteResource(String type,
String id)
删除资源
|
ResourceMap |
deleteTemplate(String type,
String id)
删除模板
|
List<Resource> |
listResourcesByTypeAndTag(String type,
String tag)
获取某个资源列表
|
List<ResourceMap> |
listTemplatesByTypeAndTag(String type,
String tag)
获取某个模板列表
|
getTarget, init, randomGetResourceByTypeAndTag, randomGetTemplateByTypeAndTagvoid addTemplate(String type, ResourceMap template)
type - 验证码类型template - 模板Resource deleteResource(String type, String id)
type - 验证码类型id - 资源IDResourceMap deleteTemplate(String type, String id)
type - 验证码类型id - 资源IDList<Resource> listResourcesByTypeAndTag(String type, String tag)
type - 验证码类型tag - 资源标签(可为空)List<ResourceMap> listTemplatesByTypeAndTag(String type, String tag)
type - 验证码类型tag - 资源标签(可为空)void clearAllTemplates()
void clearAllResources()
Copyright © 2025. All rights reserved.