Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Commit

Permalink
fix(http): file delete sign param declare
Browse files Browse the repository at this point in the history
  • Loading branch information
gamelife1314 committed Sep 16, 2019
1 parent ed760e8 commit 777d361
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion artisan/bigfile.go
Expand Up @@ -27,7 +27,7 @@ import (
var (
app = cli.App{
Name: "bigfile",
Version: "1.0.1",
Version: "1.0.2",
Compiled: time.Now(),
Authors: []*cli.Author{
{
Expand Down
9 changes: 5 additions & 4 deletions http/file_delete.go
Expand Up @@ -15,10 +15,11 @@ import (
)

type fileDeleteInput struct {
Token string `form:"token" binding:"required"`
Nonce string `form:"nonce" header:"X-Request-Nonce" binding:"omitempty,min=32,max=48"`
FileUID string `form:"fileUid" binding:"required"`
Force bool `form:"force,default=0" binding:"omitempty"`
Token string `form:"token" binding:"required"`
Nonce string `form:"nonce" header:"X-Request-Nonce" binding:"omitempty,min=32,max=48"`
FileUID string `form:"fileUid" binding:"required"`
Force bool `form:"force,default=0" binding:"omitempty"`
Sign *string `form:"sign" binding:"omitempty"`
}

// FileDeleteHandler is used to delete a file or a directory
Expand Down

0 comments on commit 777d361

Please sign in to comment.