public interface BackupService extends IModelService<Backup>
| 限定符和类型 | 方法和说明 |
|---|---|
void |
create(Backup bak)
创建新备份
|
Backup |
getByCaption(String caption)
根据备份名称返回备份记录
主要用于判断备份名称的唯一性
|
void |
removeBak(String ids)
删除备份
|
void |
restore(EMap paras)
还原
|
void |
upload(File file)
上传备份文件
|
File |
zip(String id)
压缩备份目录,并返回完整路径用于下载
|
able, batchSave, batchUpdate, deleteByCodes, deleteById, deleteByIda, deleteByIds, disable, disable, disableByIda, disableByIds, enable, enable, enableByIda, enableByIds, findByCode, findByCodea, findByCodes, findByDomain, findByDomainSingle, findById, findByIda, findByIds, paginate, paginate, removeRepeat, save, saveOrUpdate, select, select, select, select, select, select, select, select, selectAll, selectAll, selectAllBy, selectAllBy, selectCol, selectCol, selectCol, selectFirst, selectFirst, selectFirst, selectFirst, selectFirst, updatevoid create(Backup bak)
创建新备份
bak - void removeBak(String ids)
删除备份
ids - void upload(File file) throws IOException
上传备份文件
file - IOExceptionvoid restore(EMap paras)
还原
id - 备份记录IDfileScope - 还原范围:文件dataScope - 还原范围:数据chnRep - 是否覆盖已存在的栏目conRep - 是否覆盖已存在的文章tagRep - 是否覆盖已存在的标签navRep - 是否覆盖已存在的导航Copyright © 2023. All rights reserved.