public interface ISohelpBootResourceService
| 限定符和类型 | 方法和说明 | 
|---|---|
| Map<String,Object> | add(String filePath,
   String fileJson) | 
| void | deleteBatch(String filePath)批量删除所有匹配地址的资源 | 
| void | deleteByPath(String filePath)删除指定的单个文件 | 
| boolean | exists(String filePath)根据地址判断资源是否存在 | 
| default String | formatFilePath(String filePath)检查filepath | 
| com.alibaba.fastjson.JSONObject | getByPath(String filePath)根据地址获取资源记录 | 
| <T> T | getByPath(String filePath,
         Class<T> cls)根据地址获取资源对象 | 
| List<com.alibaba.fastjson.JSONObject> | listByPath(String filePath) | 
| <T> List<T> | listByPath(String filePath,
          Class<T> cls) | 
| <T> List<T> | listByPath(String filePath,
          Class<T> cls,
          int deep)查询deep目录下文件 | 
| List<com.alibaba.fastjson.JSONObject> | listByPath(String filePath,
          int deep)资源列表 | 
| default boolean | readOnly() | 
| void | renamePath(String srcFilePath,
          String newFilePath) | 
| Map<String,Object> | save(String filePath,
    Map<String,Object> formMap) | 
| Map<String,Object> | save(String filePath,
    String fileJson) | 
| Map<String,Object> | updateByPath(String filePath,
            String fileJson) | 
default boolean readOnly()
boolean exists(String filePath)
filePath - 资源路径com.alibaba.fastjson.JSONObject getByPath(String filePath)
filePath - 资源路径<T> T getByPath(String filePath, Class<T> cls) throws Exception
T - filePath - 资源路径cls - 初始类ExceptionMap<String,Object> save(String filePath, Map<String,Object> formMap) throws SQLException, BusiException
filePath - formMap - SQLExceptionBusiExceptionMap<String,Object> save(String filePath, String fileJson) throws SQLException, BusiException
filePath - fileJson - SQLExceptionBusiExceptionMap<String,Object> add(String filePath, String fileJson) throws SQLException, BusiException
filePath - fileJson - SQLExceptionBusiExceptionvoid renamePath(String srcFilePath, String newFilePath) throws SQLException, BusiException
srcFilePath - newFilePath - SQLExceptionBusiExceptionMap<String,Object> updateByPath(String filePath, String fileJson) throws SQLException, BusiException
filePath - fileJson - SQLExceptionBusiException<T> List<T> listByPath(String filePath, Class<T> cls) throws SQLException
T - filePath - cls - SQLExceptionList<com.alibaba.fastjson.JSONObject> listByPath(String filePath, int deep)
filePath - deep - 查询的深度 1级,2级....<T> List<T> listByPath(String filePath, Class<T> cls, int deep) throws SQLException
T - filePath - cls - deep - 查询的深度SQLExceptionvoid deleteByPath(String filePath) throws BusiException
filePath - BusiExceptionvoid deleteBatch(String filePath) throws BusiException
filePath - BusiExceptionCopyright © 2025. All rights reserved.