fix: allow empty password for ShareCreateService (#2498)

pull/2511/head
WintBit 2025-06-17 11:03:29 +08:00 committed by GitHub
parent 9d28fde00c
commit 41eb010698
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ type (
ShareCreateService struct {
Uri string `json:"uri" binding:"required"`
IsPrivate bool `json:"is_private"`
Password string `json:"password" binding:"max=32,alphanum,omitempty"`
Password string `json:"password" binding:"omitempty,max=32,alphanum"`
RemainDownloads int `json:"downloads"`
Expire int `json:"expire"`
ShareView bool `json:"share_view"`