Feat: import file from existing outer folder

This commit is contained in:
HFO4
2020-05-02 10:22:28 +08:00
parent b02d27ca0a
commit e8a6df9a86
9 changed files with 169 additions and 2 deletions

View File

@ -413,3 +413,14 @@ func AdminCreateImportTask(c *gin.Context) {
c.JSON(200, ErrorResponse(err))
}
}
// AdminListFolders 列出用户或外部文件系统目录
func AdminListFolders(c *gin.Context) {
var service admin.ListFolderService
if err := c.ShouldBindUri(&service); err == nil {
res := service.List(c)
c.JSON(200, res)
} else {
c.JSON(200, ErrorResponse(err))
}
}