Feat: share file list in dashboard

This commit is contained in:
HFO4
2020-03-09 10:59:42 +08:00
parent 9166a4ecd6
commit 3b5af8da47
3 changed files with 92 additions and 0 deletions

View File

@@ -378,3 +378,14 @@ func AdminListShare(c *gin.Context) {
c.JSON(200, ErrorResponse(err))
}
}
// AdminDeleteShare 批量删除分享
func AdminDeleteShare(c *gin.Context) {
var service admin.ShareBatchService
if err := c.ShouldBindJSON(&service); err == nil {
res := service.Delete(c)
c.JSON(200, res)
} else {
c.JSON(200, ErrorResponse(err))
}
}