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

Commit 777d361

Browse files
committed
fix(http): file delete sign param declare
1 parent ed760e8 commit 777d361

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

artisan/bigfile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
var (
2828
app = cli.App{
2929
Name: "bigfile",
30-
Version: "1.0.1",
30+
Version: "1.0.2",
3131
Compiled: time.Now(),
3232
Authors: []*cli.Author{
3333
{

http/file_delete.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ import (
1515
)
1616

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

2425
// FileDeleteHandler is used to delete a file or a directory

0 commit comments

Comments
 (0)