Feat: slave side list file

This commit is contained in:
HFO4
2020-04-28 10:02:53 +08:00
parent d5fc5745b4
commit 5d579cdadc
6 changed files with 89 additions and 7 deletions

View File

@@ -158,3 +158,14 @@ func SlavePing(c *gin.Context) {
c.JSON(200, ErrorResponse(err))
}
}
// SlaveList 从机列出文件
func SlaveList(c *gin.Context) {
var service explorer.SlaveListService
if err := c.ShouldBindJSON(&service); err == nil {
res := service.List(c)
c.JSON(200, res)
} else {
c.JSON(200, ErrorResponse(err))
}
}