From 4c55552decdaba421a98d940c7af27ff7fe8ca52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Thu, 6 Mar 2025 01:21:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(#592):=20=E6=9F=90=E4=BA=9B=E6=83=85?= =?UTF-8?q?=E5=86=B5=E4=B8=8B=E8=AE=A1=E5=88=92=E4=BB=BB=E5=8A=A1=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/http/request/cron.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/http/request/cron.go b/internal/http/request/cron.go index c55f5569..36e020ab 100644 --- a/internal/http/request/cron.go +++ b/internal/http/request/cron.go @@ -7,7 +7,7 @@ type CronCreate struct { Script string `form:"script" json:"script"` BackupType string `form:"backup_type" json:"backup_type" validate:"requiredIf:Type,backup"` BackupPath string `form:"backup_path" json:"backup_path"` - Target string `form:"target" json:"target" validate:"required"` + Target string `form:"target" json:"target" validate:"requiredIf:Type,backup,cutoff"` Save int `form:"save" json:"save" validate:"required"` }