Test: list folder & filesystem/path & model/folder/list

This commit is contained in:
HFO4
2019-11-24 16:28:41 +08:00
parent b431f3674c
commit 5e1e76719f
10 changed files with 255 additions and 7 deletions

View File

@@ -19,7 +19,7 @@ func CreateDirectory(c *gin.Context) {
// ListDirectory 列出目录下内容
func ListDirectory(c *gin.Context) {
var service explorer.DirectoryService
if err := c.ShouldBindJSON(&service); err == nil {
if err := c.ShouldBindQuery(&service); err == nil {
res := service.ListDirectory(c)
c.JSON(200, res)
} else {