重构: App拆分10域文件+并发安全+结构化日志+依赖升级
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package main
|
||||
|
||||
// ========== 回收站接口 ==========
|
||||
|
||||
// GetRecycleBinEntries 获取回收站条目
|
||||
func (a *App) GetRecycleBinEntries() ([]map[string]interface{}, error) {
|
||||
return a.filesystem.GetRecycleBinEntries()
|
||||
}
|
||||
|
||||
// RestoreFromRecycleBin 从回收站恢复文件
|
||||
func (a *App) RestoreFromRecycleBin(recyclePath string) error {
|
||||
return a.filesystem.RestoreFromRecycleBin(recyclePath)
|
||||
}
|
||||
|
||||
// DeletePermanently 永久删除回收站中的文件
|
||||
func (a *App) DeletePermanently(recyclePath string) error {
|
||||
return a.filesystem.DeletePermanently(recyclePath)
|
||||
}
|
||||
|
||||
// EmptyRecycleBin 清空回收站
|
||||
func (a *App) EmptyRecycleBin() error {
|
||||
return a.filesystem.EmptyRecycleBin()
|
||||
}
|
||||
Reference in New Issue
Block a user