diff --git a/backend/app/dto/request/nginx.go b/backend/app/dto/request/nginx.go index 88c583f13..8a0529f27 100644 --- a/backend/app/dto/request/nginx.go +++ b/backend/app/dto/request/nginx.go @@ -14,7 +14,7 @@ type NginxScopeReq struct { type NginxConfigUpdate struct { Scope dto.NginxKey `json:"scope"` - Operate string `json:"operate" validate:"required;oneof=add update delete"` + Operate string `json:"operate" validate:"required,oneof=add update delete"` WebsiteID uint `json:"websiteId" validate:"required"` Params interface{} `json:"params"` }