Feat: get file content via anonymous url

This commit is contained in:
HFO4 committed 2019-12-10 20:42:40 +08:00
1 parent ea7f034332
commit 297b507ca7
8 files changed
+90 -21

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ func AnonymousGetContent(c *gin.Context) {
defer cancel()
var service explorer.FileAnonymousGetService
if err := c.ShouldBind(&service); err == nil {
if err := c.ShouldBindUri(&service); err == nil {
res := service.Download(ctx, c)
if res.Code != 0 {
c.JSON(200, res)